You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
espree.parse('class A { set foo(){} }',{ecmaFeatures: {classes: true}});
Throws :
Error: ASSERT: Message reference must be in range
at assert (/home/ubuntu/workspace/espree.js:78:15)
at /home/ubuntu/workspace/espree.js:2083:17
at String.replace (native)
at throwError (/home/ubuntu/workspace/espree.js:2080:29)
at throwErrorTolerant (/home/ubuntu/workspace/espree.js:2106:20)
at tryParseMethodDefinition (/home/ubuntu/workspace/espree.js:2438:17)
at parseClassBody (/home/ubuntu/workspace/espree.js:4984:22)
at parseClassDeclaration (/home/ubuntu/workspace/espree.js:5065:17)
at parseSourceElement (/home/ubuntu/workspace/espree.js:5095:28)
at parseSourceElements (/home/ubuntu/workspace/espree.js:5143:25)
I think tryParseMethodDefinition L2438 should be throwErrorTolerant(lookahead, Messages.UnexpectedToken, lookahead.value);
The text was updated successfully, but these errors were encountered:
Using espree master, this code :
Throws :
I think
tryParseMethodDefinition
L2438 should bethrowErrorTolerant(lookahead, Messages.UnexpectedToken, lookahead.value);
The text was updated successfully, but these errors were encountered: