Skip to content

Commit

Permalink
Allow surrogates in string literals.
Browse files Browse the repository at this point in the history
Fixes issue #26620
BUG: http://dartbug.com/26620

R=asiva@google.com, brianwilkerson@google.com, floitsch@google.com, hausner@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org/2304923002 .

Committed: 574ae43
  • Loading branch information
lrhn committed Sep 26, 2016
1 parent 574ae43 commit 3ba0e98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/compiler/lib/src/string_validator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ class StringValidator {
length++;
if (code > 0x10FFFF) {
stringParseError("Invalid code point", token, index);
return null;
}
}
}
Expand Down

0 comments on commit 3ba0e98

Please sign in to comment.