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

Unified Diff: test/codegen/expect/fieldtest.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/extensions.js ('k') | test/codegen/expect/js/js.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/fieldtest.js
diff --git a/test/codegen/expect/fieldtest.js b/test/codegen/expect/fieldtest.js
index c714e683d30558f4519bfdedafc93ee2e16a32dd..f265c36880a279d4cc851ead7377b95ed6affa73 100644
--- a/test/codegen/expect/fieldtest.js
+++ b/test/codegen/expect/fieldtest.js
@@ -7,13 +7,13 @@ dart_library.library('fieldtest', null, /* Imports */[
const dartx = dart_sdk.dartx;
const fieldtest = Object.create(null);
fieldtest.A = class A extends core.Object {
- A() {
+ new() {
this.x = 42;
}
};
fieldtest.B$ = dart.generic(T => {
class B extends core.Object {
- B() {
+ new() {
this.x = null;
this.y = null;
this.z = null;
@@ -65,7 +65,7 @@ dart_library.library('fieldtest', null, /* Imports */[
}
};
fieldtest.Derived = class Derived extends fieldtest.BaseWithGetter {
- Derived() {
+ new() {
this[foo] = 2;
this.bar = 3;
}
@@ -118,7 +118,7 @@ dart_library.library('fieldtest', null, /* Imports */[
}
});
fieldtest.MyEnum = class MyEnum extends core.Object {
- MyEnum(index) {
+ new(index) {
this.index = index;
}
toString() {
« no previous file with comments | « test/codegen/expect/extensions.js ('k') | test/codegen/expect/js/js.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698