[PATCH 1/4] jscript: Parse 'let' and 'const' variable declarations.

Paul Gofman pgofman at codeweavers.com
Tue Jun 15 01:32:46 CDT 2021


On 6/14/21 21:22, Jacek Caban wrote:
> 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.

Yes, I will add a test for the actual 'const' usage in pre-ES5 and will
fire an error on attempt to use it.



More information about the wine-devel mailing list