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 8e9da1f7ddebdfa082a0d89c4961b4260a81a321..cecfc8fb81b46fc0c346a2b13103a9173fbdd522 100644 |
--- a/test/codegen/expect/dir/html_input_d.js |
+++ b/test/codegen/expect/dir/html_input_d.js |
@@ -3,16 +3,7 @@ var html_input_d; |
'use strict'; |
// Function fib: (int) → int |
function fib(n) { |
- return _fib(n, new core.Map()); |
- } |
- // Function _fib: (int, Map<int, int>) → int |
- function _fib(n, seen) { |
- if (n === 0 || n === 1) |
- return 1; |
- if (seen.get(n) !== null) |
- return seen.get(n); |
- seen.set(n, dart.notNull(_fib(dart.notNull(n) - 1, seen)) + dart.notNull(_fib(dart.notNull(n) - 2, seen))); |
- return seen.get(n); |
+ return n === 0 || n === 1 ? 1 : dart.notNull(fib(dart.notNull(n) - 1)) + dart.notNull(fib(dart.notNull(n) - 2)); |
} |
// Exports: |
exports.fib = fib; |