summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/TokenStream.h
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-18 14:55:49 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-18 14:55:49 +0100
commit427e7346629c76a1676a3f92320c3d2575d01b85 (patch)
tree661743558731b0b2ca20b50528354d2441f0d684 /js/src/frontend/TokenStream.h
parenta24511ca8e19afe4d19008ba903e1edab0af3223 (diff)
downloadUXP-427e7346629c76a1676a3f92320c3d2575d01b85.tar
UXP-427e7346629c76a1676a3f92320c3d2575d01b85.tar.gz
UXP-427e7346629c76a1676a3f92320c3d2575d01b85.tar.lz
UXP-427e7346629c76a1676a3f92320c3d2575d01b85.tar.xz
UXP-427e7346629c76a1676a3f92320c3d2575d01b85.zip
Correctly tokenize valid JS names when using Unicode mathematical alphanumeric symbols as variable name
Issue https://github.com/MoonchildProductions/Pale-Moon/issues/1647
Diffstat (limited to 'js/src/frontend/TokenStream.h')
-rw-r--r--js/src/frontend/TokenStream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/src/frontend/TokenStream.h b/js/src/frontend/TokenStream.h
index 29dcead62..5d6b4b795 100644
--- a/js/src/frontend/TokenStream.h
+++ b/js/src/frontend/TokenStream.h
@@ -952,6 +952,7 @@ class MOZ_STACK_CLASS TokenStream
uint32_t peekExtendedUnicodeEscape(uint32_t* codePoint);
uint32_t matchUnicodeEscapeIdStart(uint32_t* codePoint);
bool matchUnicodeEscapeIdent(uint32_t* codePoint);
+ bool matchTrailForLeadSurrogate(char16_t lead, char16_t* trail, uint32_t* codePoint);
bool peekChars(int n, char16_t* cp);
MOZ_MUST_USE bool getDirectives(bool isMultiline, bool shouldWarnDeprecated);