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

Unified Diff: test/codegen/expect/dir/html_input_d.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/dir/html_input_d.js
diff --git a/test/codegen/expect/dir/html_input_d.js b/test/codegen/expect/dir/html_input_d.js
index 1f4823acb3d92f8979843f39bfe3cec4695158b9..8e9da1f7ddebdfa082a0d89c4961b4260a81a321 100644
--- a/test/codegen/expect/dir/html_input_d.js
+++ b/test/codegen/expect/dir/html_input_d.js
@@ -7,11 +7,11 @@ var html_input_d;
}
// Function _fib: (int, Map<int, int>) → int
function _fib(n, seen) {
- if (dart.notNull(n === 0) || dart.notNull(n === 1))
+ if (n === 0 || n === 1)
return 1;
if (seen.get(n) !== null)
return seen.get(n);
- seen.set(n, _fib(n - 1, seen) + _fib(n - 2, seen));
+ seen.set(n, dart.notNull(_fib(dart.notNull(n) - 1, seen)) + dart.notNull(_fib(dart.notNull(n) - 2, seen)));
return seen.get(n);
}
// Exports:

Powered by Google App Engine
This is Rietveld 408576698