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

Unified Diff: pkg/dev_compiler/test/codegen_expected/varargs.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/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", {

Powered by Google App Engine
This is Rietveld 408576698