JS backend: make intrinsic array factory methods.
#KT-2511 fixed (cherry picked from commit 31843c5)
This commit is contained in:
@@ -59,10 +59,6 @@ var kotlin = {set:function (receiver, key, value) {
|
||||
return obj1 === obj2;
|
||||
};
|
||||
|
||||
Kotlin.array = function (args) {
|
||||
return args === null || args === undefined ? [] : args.slice();
|
||||
};
|
||||
|
||||
Kotlin.intUpto = function (from, to) {
|
||||
return Kotlin.$new(Kotlin.NumberRange)(from, to);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user