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

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

Issue 949383003: use js_ast instead of strings to generate JS (Closed) Base URL: git@github.com:dart-lang/dart-dev-compiler.git@master
Patch Set: 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/html_input_d/html_input_d.js
diff --git a/test/codegen/expect/html_input_d/html_input_d.js b/test/codegen/expect/html_input_d/html_input_d.js
index 2f87af6caf01797bbebee9b342036e90da146b39..de39c173758000015604e0dc85ec73d26ce6d4b2 100644
--- a/test/codegen/expect/html_input_d/html_input_d.js
+++ b/test/codegen/expect/html_input_d/html_input_d.js
@@ -1,17 +1,19 @@
var html_input_d;
-(function (html_input_d) {
+(function(html_input_d) {
'use strict';
// Function fib: (int) → int
- function fib(n) { return _fib(n, new core.Map()); }
-
+ function fib(n) {
+ return _fib(n, new core.Map());
+ }
// Function _fib: (int, Map<int, int>) → int
function _fib(n, seen) {
- if (dart.notNull(n === 0) || dart.notNull(n === 1)) return 1;
- if (seen.get(n) !== null) return seen.get(n);
+ if (dart.notNull(n === 0) || dart.notNull(n === 1))
+ return 1;
+ if (seen.get(n) !== null)
+ return seen.get(n);
seen.set(n, _fib(n - 1, seen) + _fib(n - 2, seen));
return seen.get(n);
}
-
// Exports:
html_input_d.fib = fib;
})(html_input_d || (html_input_d = {}));

Powered by Google App Engine
This is Rietveld 408576698