JS backend: make intrinsic array factory methods.

#KT-2511 fixed

(cherry picked from commit 31843c5)
This commit is contained in:
develar
2012-09-06 20:12:54 +04:00
committed by Zalim Bashorov
parent e0a899902c
commit 1af35a6aff
5 changed files with 70 additions and 14 deletions
-4
View File
@@ -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);
};