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

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

Issue 1020043002: Replace dart_core.js with actual compiled SDK (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merge Created 5 years, 9 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 | « test/codegen/expect/html_input.html ('k') | test/codegen/expect/server_mode/html_input.html » ('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 12d271c404e688008cdc953fa59417319e90c9a8..ea96ac0df6e3de04c1b2952e3e4a07c829e5cc68 100644
--- a/test/codegen/expect/methods.js
+++ b/test/codegen/expect/methods.js
@@ -23,11 +23,11 @@ var methods;
return b;
}
w(a, opt$) {
- let b = opt$.b === void 0 ? null : opt$.b;
+ let b = opt$ && 'b' in opt$ ? opt$.b : null;
return dart.notNull(a) + dart.notNull(b);
}
ww(a, opt$) {
- let b = opt$.b === void 0 ? 0 : opt$.b;
+ let b = opt$ && 'b' in opt$ ? opt$.b : 0;
return dart.notNull(a) + dart.notNull(b);
}
get a() {
« no previous file with comments | « test/codegen/expect/html_input.html ('k') | test/codegen/expect/server_mode/html_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698