Jacek Caban (@jacek) commented about dlls/jscript/lex.c:
return ctx->ptr != ctx->end;
}
-BOOL unescape(WCHAR *str, size_t *len) +BOOL unescape(WCHAR *str, size_t *len, BOOL json)
Spec defines a separate rules for that and as far as I can tell only `UnicodeEscapeSequence` is shared with JS lexer (which matches your implementation). Maybe it makes sense to just use a separate implementation? Your disabling most of cases for JSON anyway.