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

Issue 1520033002: js_ast: Better escaping of strings in preparation for utf8 file encoding (Closed)

Created:
5 years ago by sra1
Modified:
5 years ago
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

js_ast: Better escaping of strings in preparation for utf8 file encoding - Choose between single and double quotes to reduce number of escapes. - With "uft8: true", leave most characters for the file encoding. - LINE SEPARATOR and PAGE SEPARATOR must always be \uXXXX encoded. - Unpaired surrogates must be encoded as \uXXXX. - Use \xXX rather than \u00XX where possible. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/dcf576a428eb95aa830fbee7a91006cddc6e8090

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -6 lines) Patch
M pkg/compiler/lib/src/js_backend/constant_emitter.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M pkg/js_ast/lib/src/builder.dart View 3 chunks +103 lines, -3 lines 0 comments Download
A pkg/js_ast/test/string_escape_test.dart View 1 1 chunk +149 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
sra1
5 years ago (2015-12-12 01:25:52 UTC) #2
Siggi Cherem (dart-lang)
lgtm! https://codereview.chromium.org/1520033002/diff/1/pkg/js_ast/test/string_escape_test.dart File pkg/js_ast/test/string_escape_test.dart (right): https://codereview.chromium.org/1520033002/diff/1/pkg/js_ast/test/string_escape_test.dart#newcode130 pkg/js_ast/test/string_escape_test.dart:130: check([0xD834, $A], [$DQ, 0xD834, $A, $DQ]); // Legacy ...
5 years ago (2015-12-12 01:43:05 UTC) #3
sra1
5 years ago (2015-12-14 19:33:24 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
dcf576a428eb95aa830fbee7a91006cddc6e8090 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698