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

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

Issue 1348453004: fix some errors in our SDK, mostly around numbers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 3 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 | « lib/src/codegen/js_codegen.dart ('k') | test/codegen_test.dart » ('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/dart", 2 "dart_runtime/dart",
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 let _c = Symbol('_c'); 8 let _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 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, opts) { 29 w(a, opts) {
30 let b = opts && 'b' in opts ? opts.b : null; 30 let b = opts && 'b' in opts ? opts.b : null;
31 return dart.notNull(a) + dart.notNull(b); 31 return dart.asInt(dart.notNull(a) + dart.notNull(b));
32 } 32 }
33 ww(a, opts) { 33 ww(a, opts) {
34 let b = opts && 'b' in opts ? opts.b : 0; 34 let b = opts && 'b' in opts ? opts.b : 0;
35 return dart.notNull(a) + dart.notNull(b); 35 return dart.notNull(a) + dart.notNull(b);
36 } 36 }
37 get a() { 37 get a() {
38 return this.x(); 38 return this.x();
39 } 39 }
40 set b(b) {} 40 set b(b) {}
41 get c() { 41 get c() {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 let c = dart.bind("", dartx.padLeft); 80 let c = dart.bind("", dartx.padLeft);
81 let r = dart.bind(3.0, dartx.floor); 81 let r = dart.bind(3.0, dartx.floor);
82 } 82 }
83 dart.fn(test); 83 dart.fn(test);
84 // Exports: 84 // Exports:
85 exports.A = A; 85 exports.A = A;
86 exports.Bar = Bar; 86 exports.Bar = Bar;
87 exports.Foo = Foo; 87 exports.Foo = Foo;
88 exports.test = test; 88 exports.test = test;
89 }); 89 });
OLDNEW
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698