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

Unified Diff: test/codegen/expect/js/js.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/fieldtest.js ('k') | test/codegen/expect/methods.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/js/js.js
diff --git a/test/codegen/expect/js/js.js b/test/codegen/expect/js/js.js
index 03ad3e5f176006a681814d512f72c4e2a55cce60..e23f74667b103409a2b16e3d64dc380a4bf81b4d 100644
--- a/test/codegen/expect/js/js.js
+++ b/test/codegen/expect/js/js.js
@@ -8,20 +8,20 @@ dart_library.library('js', null, /* Imports */[
const dartx = dart_sdk.dartx;
const js$ = Object.create(null);
js$.JS = class JS extends core.Object {
- JS(name) {
+ new(name) {
if (name === void 0) name = null;
this.name = name;
}
};
dart.setSignature(js$.JS, {
- constructors: () => ({JS: [js$.JS, [], [core.String]]})
+ constructors: () => ({new: [js$.JS, [], [core.String]]})
});
js$._Anonymous = class _Anonymous extends core.Object {
- _Anonymous() {
+ new() {
}
};
dart.setSignature(js$._Anonymous, {
- constructors: () => ({_Anonymous: [js$._Anonymous, []]})
+ constructors: () => ({new: [js$._Anonymous, []]})
});
js$.anonymous = dart.const(new js$._Anonymous());
js$.allowInteropCaptureThis = js.allowInteropCaptureThis;
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | test/codegen/expect/methods.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698