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

Unified Diff: test/codegen/expect/methods.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/js/js.js ('k') | test/codegen/expect/misc.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/methods.js
diff --git a/test/codegen/expect/methods.js b/test/codegen/expect/methods.js
index 5792d954397eac8e50c8a35cd07a8762babf12f4..70f328fefea632ccac923edc084345d722443a07 100644
--- a/test/codegen/expect/methods.js
+++ b/test/codegen/expect/methods.js
@@ -8,7 +8,7 @@ dart_library.library('methods', null, /* Imports */[
const methods = Object.create(null);
const _c = Symbol('_c');
methods.A = class A extends core.Object {
- A() {
+ new() {
this[_c] = 3;
}
x() {
@@ -73,7 +73,7 @@ dart_library.library('methods', null, /* Imports */[
methods: () => ({call: [dart.dynamic, [dart.dynamic]]})
});
methods.Foo = class Foo extends core.Object {
- Foo() {
+ new() {
this.bar = new methods.Bar();
}
};
« no previous file with comments | « test/codegen/expect/js/js.js ('k') | test/codegen/expect/misc.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698