diff --git a/ChangeLog b/ChangeLog index 93ffce8944..e6e8ab47ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,7 @@ Add ES9 optional catch binding (`try {} catch {}`) Bangle.js: Fix terminal's repeated call to '.flip' that broke double buffering on Bangle.js 1 JIT: Ensure ternary block skips 'named' variables (and references them correctly) + Fix for UNFINISHED REGEX syntax error when parsing `true / false` (fix #2424) 2v19 : Fix Object.values/entries for numeric keys after 2v18 regression (fix #2375) nRF52: for SD>5 use static buffers for advertising and scan response data (#2367) diff --git a/src/jslex.c b/src/jslex.c index 8812f3fdd3..7ea6950c92 100644 --- a/src/jslex.c +++ b/src/jslex.c @@ -789,7 +789,8 @@ void jslGetNextToken() { case JSLJT_FORWARDSLASH: // yay! JS is so awesome. if (lastToken==LEX_EOF || - (lastToken>=_LEX_TOKENS_START && lastToken<=_LEX_TOKENS_END) || // any keyword or operator + (lastToken>=_LEX_TOKENS_START && lastToken<=_LEX_TOKENS_END && // keyword or operator + lastToken!=LEX_R_TRUE && lastToken!=LEX_R_FALSE && lastToken!=LEX_R_NULL && lastToken!=LEX_R_UNDEFINED) || // but not values (#2424) lastToken=='!' || lastToken=='%' || lastToken=='&' ||