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

Unified Diff: pkg/dev_compiler/test/codegen_expected/unresolved_names.js

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/test/codegen_expected/unresolved_names.js
diff --git a/pkg/dev_compiler/test/codegen_expected/unresolved_names.js b/pkg/dev_compiler/test/codegen_expected/unresolved_names.js
index 292d42a618563118a74b72c71fe5ed9c99d1501d..a1ae51506f05dd0b29153c93c1a1bde75380893b 100644
--- a/pkg/dev_compiler/test/codegen_expected/unresolved_names.js
+++ b/pkg/dev_compiler/test/codegen_expected/unresolved_names.js
@@ -6,10 +6,12 @@ define(['dart_sdk'], function(dart_sdk) {
const unresolved_names = Object.create(null);
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.fnType(dart.dynamic, [])))();
unresolved_names.C = class C extends core.Object {};
+ (unresolved_names.C.new = function() {
+ }).prototype = unresolved_names.C.prototype;
unresolved_names.main = function() {
- new (dart.throw("compile error: unresolved constructor: " + "dynamic" + "." + "<unnamed>"))();
- new (dart.throw("compile error: unresolved constructor: " + "C" + "." + "bar"))();
- core.print(dart.throw("compile error: unresolved identifier: " + "baz"));
+ new (dart.throw(Error("compile error: unresolved constructor: " + "dynamic" + "." + "<unnamed>")))();
+ new (dart.throw(Error("compile error: unresolved constructor: " + "C" + "." + "bar")))();
+ core.print(dart.throw(Error("compile error: unresolved identifier: " + "baz")));
core.print(dart.dload(unresolved_names.C, 'quux'));
};
dart.fn(unresolved_names.main, VoidTodynamic());
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js.map ('k') | pkg/dev_compiler/test/codegen_expected/varargs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698