Skip to content

Commit

Permalink
fix(parser): fixes #31
Browse files Browse the repository at this point in the history
  • Loading branch information
KFlash committed Aug 7, 2019
1 parent db388db commit 7576780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "meriyah",
"version": "1.6.1",
"version": "1.6.2",
"description": "A 100% compliant, self-hosted javascript parser with high focus on both performance and stability",
"main": "dist/meriyah.umd.js",
"module": "dist/meriyah.esm.js",
Expand Down
6 changes: 1 addition & 5 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3193,7 +3193,6 @@ export function parseAssignmentExpression(
* AsyncArrowFunction
* YieldExpression
* LeftHandSideExpression AssignmentOperator AssignmentExpression
*
*/

const { token } = parser;
Expand Down Expand Up @@ -4201,10 +4200,7 @@ export function parsePrimaryExpressionExtended(
case Token.Modulo:
if (context & Context.OptionsV8) return parseV8Intrinsic(parser, context, start, line, column);
default:
if (isValidIdentifier(context, parser.token)) {
return parseIdentifierOrArrow(parser, context, start, line, column);
}

if (isValidIdentifier(context, parser.token)) return parseIdentifierOrArrow(parser, context, start, line, column);
report(parser, Errors.UnexpectedToken, KeywordDescTable[parser.token & Token.Type]);
}
}
Expand Down

0 comments on commit 7576780

Please sign in to comment.