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

Side by Side Diff: test/codegen/expect/methods.js

Issue 1507343013: Run tests on Chrome stable by default (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years 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/constructors.js ('k') | test/codegen/expect/temps.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('methods', null, /* Imports */[ 1 dart_library.library('methods', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/core' 3 'dart/core'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 ], function(exports, dart, core) { 5 ], function(exports, dart, core) {
6 'use strict'; 6 'use strict';
7 let dartx = dart.dartx; 7 let dartx = dart.dartx;
8 const _c = Symbol('_c'); 8 const _c = Symbol('_c');
9 class A extends core.Object { 9 class A extends core.Object {
10 A() { 10 A() {
11 this[_c] = 3; 11 this[_c] = 3;
12 } 12 }
13 x() { 13 x() {
14 return 42; 14 return 42;
15 } 15 }
16 y(a) { 16 y(a) {
17 return a; 17 return a;
18 } 18 }
19 z(b) { 19 z(b) {
20 if (b === void 0) 20 if (b === void 0)
21 b = null; 21 b = null;
22 return dart.asInt(b); 22 return dart.asInt(b);
23 } 23 }
24 zz(b) { 24 zz(b) {
25 if (b === void 0) 25 if (b === void 0)
26 b = 0; 26 b = 0;
27 return b; 27 return b;
28 } 28 }
29 w(a, {b = null} = {}) { 29 w(a, opts) {
30 let b = opts && 'b' in opts ? opts.b : null;
30 return dart.asInt(dart.notNull(a) + dart.notNull(b)); 31 return dart.asInt(dart.notNull(a) + dart.notNull(b));
31 } 32 }
32 clashWithObjectProperty({constructor = null} = Object.create(null)) { 33 clashWithObjectProperty(opts) {
34 let constructor = opts && 'constructor' in opts ? opts.constructor : null;
33 return constructor; 35 return constructor;
34 } 36 }
35 clashWithJsReservedName(opts) { 37 clashWithJsReservedName(opts) {
36 let func = opts && 'function' in opts ? opts.function : null; 38 let func = opts && 'function' in opts ? opts.function : null;
37 return func; 39 return func;
38 } 40 }
39 get a() { 41 get a() {
40 return this.x(); 42 return this.x();
41 } 43 }
42 set b(b) {} 44 set b(b) {}
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 let c = dart.bind("", dartx.padLeft); 85 let c = dart.bind("", dartx.padLeft);
84 let r = dart.bind(3.0, dartx.floor); 86 let r = dart.bind(3.0, dartx.floor);
85 } 87 }
86 dart.fn(test); 88 dart.fn(test);
87 // Exports: 89 // Exports:
88 exports.A = A; 90 exports.A = A;
89 exports.Bar = Bar; 91 exports.Bar = Bar;
90 exports.Foo = Foo; 92 exports.Foo = Foo;
91 exports.test = test; 93 exports.test = test;
92 }); 94 });
OLDNEW
« no previous file with comments | « test/codegen/expect/constructors.js ('k') | test/codegen/expect/temps.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698