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

Unified Diff: tool/input_sdk/private/js_number.dart

Issue 1121853002: fixes #150, broken code in js_number.dart (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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/generated_sdk/lib/_internal/compiler/js_lib/js_number.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/js_number.dart
diff --git a/tool/input_sdk/private/js_number.dart b/tool/input_sdk/private/js_number.dart
index 63afa4b29b2dabdb6e67a2024dbfac06efa961d5..1b8a137b85f0c3bf90b3b40d5339da5ca0c24ac2 100644
--- a/tool/input_sdk/private/js_number.dart
+++ b/tool/input_sdk/private/js_number.dart
@@ -166,7 +166,7 @@ class JSNumber extends Interceptor implements num {
// Then we don't know how to handle it at all.
throw new UnsupportedError("Unexpected toString result: $result");
}
- String result = JS('String', '#', match[1]);
+ result = JS('String', '#', match[1]);
int exponent = JS("int", "+#", match[3]);
if (match[2] != null) {
result = JS('String', '# + #', result, match[2]);
« no previous file with comments | « test/generated_sdk/lib/_internal/compiler/js_lib/js_number.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698