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

Unified Diff: test/codegen/expect/misc.js

Issue 1965213003: simplify constructors, fixes #564 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « test/codegen/expect/methods.js ('k') | test/codegen/expect/notnull.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/misc.js
diff --git a/test/codegen/expect/misc.js b/test/codegen/expect/misc.js
index fd3752f12922244855b09a16a785daf355cf00a7..68e5b743627035046ff083b76a9029bd9cc24622 100644
--- a/test/codegen/expect/misc.js
+++ b/test/codegen/expect/misc.js
@@ -7,11 +7,11 @@ dart_library.library('misc', null, /* Imports */[
const dartx = dart_sdk.dartx;
const misc = Object.create(null);
misc._Uninitialized = class _Uninitialized extends core.Object {
- _Uninitialized() {
+ new() {
}
};
dart.setSignature(misc._Uninitialized, {
- constructors: () => ({_Uninitialized: [misc._Uninitialized, []]})
+ constructors: () => ({new: [misc._Uninitialized, []]})
});
misc.UNINITIALIZED = dart.const(new misc._Uninitialized());
misc.Generic$ = dart.generic(T => {
@@ -30,7 +30,7 @@ dart_library.library('misc', null, /* Imports */[
});
misc.Generic = misc.Generic$();
misc.Base = class Base extends core.Object {
- Base() {
+ new() {
this.x = 1;
this.y = 2;
}
@@ -39,7 +39,7 @@ dart_library.library('misc', null, /* Imports */[
}
};
misc.Derived = class Derived extends core.Object {
- Derived() {
+ new() {
this.z = 3;
}
['=='](obj) {
« no previous file with comments | « test/codegen/expect/methods.js ('k') | test/codegen/expect/notnull.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698