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

Unified Diff: pkg/dev_compiler/test/codegen_expected/es6_modules.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/es6_modules.js
diff --git a/pkg/dev_compiler/test/codegen_expected/es6_modules.js b/pkg/dev_compiler/test/codegen_expected/es6_modules.js
index 5e16c6dc8607c4ab4b4a4a7ddb715ae614fd70c3..25fc96b9791d2c145b3c5000dc3c23a512b9848a 100644
--- a/pkg/dev_compiler/test/codegen_expected/es6_modules.js
+++ b/pkg/dev_compiler/test/codegen_expected/es6_modules.js
@@ -6,15 +6,23 @@ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.fnType(dart.dynamic
let VoidToString = () => (VoidToString = dart.constFn(dart.fnType(core.String, [])))();
es6_modules.Callback = dart.typedef('Callback', () => dart.fnTypeFuzzy(dart.void, [], {i: core.int}));
es6_modules.A = class A extends core.Object {};
+(es6_modules.A.new = function() {
+}).prototype = es6_modules.A.prototype;
es6_modules._A = class _A extends core.Object {};
+(es6_modules._A.new = function() {
+}).prototype = es6_modules._A.prototype;
es6_modules.B$ = dart.generic(T => {
class B extends core.Object {}
+ (B.new = function() {
+ }).prototype = B.prototype;
dart.addTypeTests(B);
return B;
});
es6_modules.B = B();
es6_modules._B$ = dart.generic(T => {
class _B extends core.Object {}
+ (_B.new = function() {
+ }).prototype = _B.prototype;
dart.addTypeTests(_B);
return _B;
});
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/equality_test.js ('k') | pkg/dev_compiler/test/codegen_expected/node_modules.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698