[PATCH 1/4] jscript: Parse 'let' and 'const' variable declarations.
Jacek Caban
jacek at codeweavers.com
Mon Jun 14 13:22:34 CDT 2021
On 6/11/21 7:46 PM, Paul Gofman wrote:
> diff --git a/dlls/jscript/lex.c b/dlls/jscript/lex.c
> index efed1038a95..3dd609885e6 100644
> --- a/dlls/jscript/lex.c
> +++ b/dlls/jscript/lex.c
> @@ -41,6 +41,7 @@ static const struct {
> {L"break", kBREAK, TRUE},
> {L"case", kCASE},
> {L"catch", kCATCH},
> + {L"const", kCONST, FALSE},
Your tests show pre-ES5 versions treat it as a reserved keyword, but it
seems to me that it's not actually supported there.
Thanks,
Jacek
More information about the wine-devel
mailing list