RESOLVED FIXED 144377
[ES6] Implement Unicode code point escapes
https://bugs.webkit.org/show_bug.cgi?id=144377
Summary [ES6] Implement Unicode code point escapes
Darin Adler
Reported 2015-04-28 23:29:40 PDT
[ES6] Implement Unicode code point escapes
Attachments
Patch (30.96 KB, patch)
2015-04-28 23:42 PDT, Darin Adler
no flags
Patch (30.95 KB, patch)
2015-04-29 00:49 PDT, Darin Adler
koivisto: review+
Darin Adler
Comment 1 2015-04-28 23:42:58 PDT
Darin Adler
Comment 2 2015-04-29 00:49:58 PDT
Antti Koivisto
Comment 3 2015-04-29 09:11:21 PDT
Comment on attachment 251932 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=251932&action=review > Source/JavaScriptCore/parser/Lexer.cpp:624 > + enum SpecialValueType { Incomplete, Invalid }; > + ParsedUnicodeEscapeValue(SpecialValueType type) > + : m_value(type == Incomplete ? -2 : -1) > + { > + } Why not enum SpecialValue { Incomplete = -2, Invalid = -1} and use them directly? > Source/JavaScriptCore/parser/Lexer.cpp:709 > +static ALWAYS_INLINE bool isLatin1(UChar32 c) > +{ > + return !(c & ~0xFF); > +} No existing helper for this?
Darin Adler
Comment 4 2015-04-29 09:21:36 PDT
Comment on attachment 251932 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=251932&action=review >> Source/JavaScriptCore/parser/Lexer.cpp:624 >> + } > > Why not enum SpecialValue { Incomplete = -2, Invalid = -1} and use them directly? I will do that. >> Source/JavaScriptCore/parser/Lexer.cpp:709 >> +} > > No existing helper for this? There’s not anything I could find. I was looking for a Latin-1 equivalent to the functions in ASCIICType.h and did not find one.
Darin Adler
Comment 5 2015-04-29 09:34:26 PDT
Note You need to log in before you can comment on or make changes to this bug.