Index: pkg/dev_compiler/test/codegen_expected/varargs.js |
diff --git a/pkg/dev_compiler/test/codegen_expected/varargs.js b/pkg/dev_compiler/test/codegen_expected/varargs.js |
index 0d5a687cc7c8186a847e133a674356db8a33fcbb..9a54a3f32f628e34845b04fd03902d4f55ae1dad 100644 |
--- a/pkg/dev_compiler/test/codegen_expected/varargs.js |
+++ b/pkg/dev_compiler/test/codegen_expected/varargs.js |
@@ -17,17 +17,16 @@ define(['dart_sdk'], function(dart_sdk) { |
dart.dcall(x, ...args); |
}; |
dart.fn(varargs.varargsTest2, dynamicAnddynamicTodynamic()); |
- src__varargs._Rest = class _Rest extends core.Object { |
- new() { |
- } |
- }; |
+ src__varargs._Rest = class _Rest extends core.Object {}; |
+ (src__varargs._Rest.new = function() { |
+ }).prototype = src__varargs._Rest.prototype; |
dart.defineLazy(src__varargs, { |
get rest() { |
- return dart.const(new src__varargs._Rest()); |
+ return dart.const(new src__varargs._Rest.new()); |
} |
}); |
src__varargs.spread = function(args) { |
- dart.throw(new core.StateError('The spread function cannot be called, ' + 'it should be compiled away.')); |
+ dart.throw(new core.StateError.new('The spread function cannot be called, ' + 'it should be compiled away.')); |
}; |
dart.fn(src__varargs.spread, dynamicTodynamic()); |
dart.trackLibraries("varargs", { |