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

Unified Diff: lib/compiler/implementation/js_backend/constant_emitter.dart

Issue 11318018: - Represent strings internally in UTF-16 format, this makes it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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: lib/compiler/implementation/js_backend/constant_emitter.dart
===================================================================
--- lib/compiler/implementation/js_backend/constant_emitter.dart (revision 14156)
+++ lib/compiler/implementation/js_backend/constant_emitter.dart (working copy)
@@ -110,7 +110,7 @@
} else if (identical(code, $BACKSLASH)) {
buffer.add(r'\\');
} else {
- if (code > 0xffff) {
+ if (code >= 0xD800 && code <= 0xDFFF) {
ahe 2012/10/28 12:07:02 I think you should just remove this check. If the
siva 2012/10/31 01:21:26 I have decided to drop the change and instead crea
compiler.reportError(
diagnosticNode,
'Unhandled non-BMP character: U+${code.toRadixString(16)}');
« no previous file with comments | « no previous file | lib/compiler/implementation/string_validator.dart » ('j') | lib/compiler/implementation/string_validator.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698