Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/types.dart

Issue 2934623003: fix #29753, use ES5 constructors for ddc (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/types.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/types.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/types.dart
index 40ab74d8fbf08b51242c71833440bf450bb6560f..11c0c46e23cdd64e4dff9cb77cefad0cd35c2e24 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/types.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/types.dart
@@ -298,7 +298,7 @@ _createSmall(count, definite, returnType, required) => JS(
}
let result = map.get($returnType);
if (result !== void 0) return result;
- result = new $FunctionType($returnType, args, [], {});
+ result = new $FunctionType.new($returnType, args, [], {});
map.set($returnType, result);
return result;
})()''');

Powered by Google App Engine
This is Rietveld 408576698