Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart |
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart |
index 39a350fd9b76352664853c398f4aec741e233c25..a19c5af599db97cde1ac904535a6ca6e2541551a 100644 |
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart |
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart |
@@ -157,7 +157,7 @@ wrapType(type) { |
if (JS('bool', '#.hasOwnProperty(#)', type, _typeObject)) { |
return JS('', '#[#]', type, _typeObject); |
} |
- return JS('', '#[#] = new #(#)', type, _typeObject, WrappedType, type); |
+ return JS('', '#[#] = #', type, _typeObject, new WrappedType(type)); |
} |
var _lazyJSTypes = JS('', 'new Map()'); |
@@ -167,7 +167,7 @@ lazyJSType(getJSTypeCallback, name) { |
if (JS('bool', '#.has(#)', _lazyJSTypes, key)) { |
return JS('', '#.get(#)', _lazyJSTypes, key); |
} |
- var ret = JS('', 'new #(#, #)', LazyJSType, getJSTypeCallback, name); |
+ var ret = new LazyJSType(getJSTypeCallback, name); |
JS('', '#.set(#, #)', _lazyJSTypes, key, ret); |
return ret; |
} |
@@ -178,7 +178,7 @@ lazyAnonymousJSType(name) { |
if (JS('bool', '#.has(#)', _lazyJSTypes, name)) { |
return JS('', '#.get(#)', _lazyJSTypes, name); |
} |
- var ret = JS('', 'new #(null, #)', LazyJSType, name); |
+ var ret = new LazyJSType(null, name); |
JS('', '#.set(#, #)', _lazyJSTypes, name, ret); |
return ret; |
} |