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

Unified Diff: sdk/lib/_internal/compiler/js_lib/js_helper.dart

Issue 781223002: Simplify dart2js StringBuffer constructor to be initializer-only. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add type to flattenString to improve type inference Created 6 years 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 | « sdk/lib/_internal/compiler/js_lib/core_patch.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/js_lib/js_helper.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/js_helper.dart b/sdk/lib/_internal/compiler/js_lib/js_helper.dart
index 00762965110ee60239a64e75275a7abb84a7cbda..48d6d0a6056db16fa2a36590a5f1161d58685ffa 100644
--- a/sdk/lib/_internal/compiler/js_lib/js_helper.dart
+++ b/sdk/lib/_internal/compiler/js_lib/js_helper.dart
@@ -826,7 +826,7 @@ class Primitives {
}
static String flattenString(String str) {
- return JS('', "#.charCodeAt(0) == 0 ? # : #", str, str, str);
+ return JS('String', "#.charCodeAt(0) == 0 ? # : #", str, str, str);
}
static String getTimeZoneName(receiver) {
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/core_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698