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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen_test.dart » ('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 52aae6fe9e2cca847c80286bda9c67d2ae9074a8..6d8c0ec9d1a6a065adacba159876c88fd8d368b1 100644
--- a/test/codegen/expect/methods.js
+++ b/test/codegen/expect/methods.js
@@ -19,7 +19,7 @@ dart_library.library('methods', null, /* Imports */[
z(b) {
if (b === void 0)
b = null;
- return b;
+ return dart.asInt(b);
}
zz(b) {
if (b === void 0)
@@ -28,7 +28,7 @@ dart_library.library('methods', null, /* Imports */[
}
w(a, opts) {
let b = opts && 'b' in opts ? opts.b : null;
- return dart.notNull(a) + dart.notNull(b);
+ return dart.asInt(dart.notNull(a) + dart.notNull(b));
}
ww(a, opts) {
let b = opts && 'b' in opts ? opts.b : 0;
« 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