Refactor JS translator to generate code for new inliner
This commit is contained in:
@@ -25,6 +25,16 @@ Kotlin.defineInlineFunction = function(tag, fun) {
|
||||
return fun;
|
||||
};
|
||||
|
||||
Kotlin.wrapFunction = function(fun) {
|
||||
var f = function() {
|
||||
f = fun();
|
||||
return f.apply(this, arguments);
|
||||
};
|
||||
return function() {
|
||||
return f.apply(this, arguments);
|
||||
};
|
||||
};
|
||||
|
||||
Kotlin.isTypeOf = function(type) {
|
||||
return function (object) {
|
||||
return typeof object === type;
|
||||
|
||||
Reference in New Issue
Block a user