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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | test/codegen/expect/methods.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('js', null, /* Imports */[ 1 dart_library.library('js', null, /* Imports */[
2 'dart_sdk' 2 'dart_sdk'
3 ], function(exports, dart_sdk) { 3 ], function(exports, dart_sdk) {
4 'use strict'; 4 'use strict';
5 const core = dart_sdk.core; 5 const core = dart_sdk.core;
6 const js = dart_sdk.js; 6 const js = dart_sdk.js;
7 const dart = dart_sdk.dart; 7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx; 8 const dartx = dart_sdk.dartx;
9 const js$ = Object.create(null); 9 const js$ = Object.create(null);
10 js$.JS = class JS extends core.Object { 10 js$.JS = class JS extends core.Object {
11 JS(name) { 11 new(name) {
12 if (name === void 0) name = null; 12 if (name === void 0) name = null;
13 this.name = name; 13 this.name = name;
14 } 14 }
15 }; 15 };
16 dart.setSignature(js$.JS, { 16 dart.setSignature(js$.JS, {
17 constructors: () => ({JS: [js$.JS, [], [core.String]]}) 17 constructors: () => ({new: [js$.JS, [], [core.String]]})
18 }); 18 });
19 js$._Anonymous = class _Anonymous extends core.Object { 19 js$._Anonymous = class _Anonymous extends core.Object {
20 _Anonymous() { 20 new() {
21 } 21 }
22 }; 22 };
23 dart.setSignature(js$._Anonymous, { 23 dart.setSignature(js$._Anonymous, {
24 constructors: () => ({_Anonymous: [js$._Anonymous, []]}) 24 constructors: () => ({new: [js$._Anonymous, []]})
25 }); 25 });
26 js$.anonymous = dart.const(new js$._Anonymous()); 26 js$.anonymous = dart.const(new js$._Anonymous());
27 js$.allowInteropCaptureThis = js.allowInteropCaptureThis; 27 js$.allowInteropCaptureThis = js.allowInteropCaptureThis;
28 js$.allowInterop = js.allowInterop; 28 js$.allowInterop = js.allowInterop;
29 // Exports: 29 // Exports:
30 exports.js = js$; 30 exports.js = js$;
31 }); 31 });
OLDNEW
« 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