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()); |