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

Unified Diff: test/codegen/expect/methods.js

Issue 977613002: Make int and double nullable by default (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: actually upload changes Created 5 years, 10 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
Index: test/codegen/expect/methods.js
diff --git a/test/codegen/expect/methods.js b/test/codegen/expect/methods.js
index d01349751efe33bcf150860388c13f7f1051b8cd..da91e48b26c3c8fea9f972086cf07bc495ad1c0a 100644
--- a/test/codegen/expect/methods.js
+++ b/test/codegen/expect/methods.js
@@ -15,7 +15,7 @@ var methods;
z(b) {
if (b === void 0)
b = null;
- return dart.notNull(b);
+ return b;
}
zz(b) {
if (b === void 0)
@@ -24,11 +24,11 @@ var methods;
}
w(a, opt$) {
let b = opt$.b === void 0 ? null : opt$.b;
- return dart.notNull(a + dart.notNull(b));
+ return dart.notNull(a) + dart.notNull(b);
}
ww(a, opt$) {
let b = opt$.b === void 0 ? 0 : opt$.b;
- return a + b;
+ return dart.notNull(a) + dart.notNull(b);
}
get a() {
return this.x();

Powered by Google App Engine
This is Rietveld 408576698