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

Unified Diff: sdk/lib/_internal/compiler/implementation/source_map_builder.dart

Issue 11411092: Revert "Add some support for the code-point code-unit distinction." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/source_map_builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/source_map_builder.dart b/sdk/lib/_internal/compiler/implementation/source_map_builder.dart
index 498c9fbc4926ddcedf28bb5208c979642cfc64e7..06a6ca02c00852f85c8321ed5169aafc729da4da 100644
--- a/sdk/lib/_internal/compiler/implementation/source_map_builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/source_map_builder.dart
@@ -57,9 +57,9 @@ class SourceMapBuilder {
buffer.add('[');
for (String string in strings) {
if (!first) buffer.add(',');
- buffer.add('"');
- writeJsonEscapedCharsOn(string, buffer);
- buffer.add('"');
+ buffer.add("'");
+ writeJsonEscapedCharsOn(string.charCodes.iterator(), buffer, null);
+ buffer.add("'");
first = false;
}
buffer.add(']');

Powered by Google App Engine
This is Rietveld 408576698