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

Unified Diff: runtime/vm/scanner.h

Issue 10388179: Reject high- and low-surrogates in escaped code points. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: continue scanning after an invalid escaped code point Created 8 years, 7 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
« no previous file with comments | « no previous file | runtime/vm/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scanner.h
diff --git a/runtime/vm/scanner.h b/runtime/vm/scanner.h
index d05149c53fff70b8bb313056c61fe8e033f61f44..107ca0236bf4a9db3514de7cbadd2b64ea263175 100644
--- a/runtime/vm/scanner.h
+++ b/runtime/vm/scanner.h
@@ -172,7 +172,7 @@ class Scanner : ValueObject {
bool ScanHexDigits(int min_digits, int max_digits, uint32_t* value);
// Reads an escaped code point from within a string literal.
- bool ScanEscapedCodePoint(uint32_t* escaped_char);
+ void ScanEscapedCodePoint(uint32_t* escaped_char);
// Reads identifier.
RawString* ConsumeIdentChars(bool allow_dollar);
« no previous file with comments | « no previous file | runtime/vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698