Skip to content

Commit

Permalink
fix(parser): fixed lgtm warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
KFlash committed May 30, 2019
1 parent 6f25b7b commit e14cb97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/bump-dev-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function savePackageJson(pkg, isLockfile) {
}

async function run() {
versionRegExp = /(\d+)\.(\d+)\.(\d+)($|\-)/;
const versionRegExp = /(\d+)\.(\d+)\.(\d+)($|\-)/;
const match = project.pkg.version.match(versionRegExp);
if (match === null) {
throw new Error(`package.json 'version' should match ${versionRegExp}`);
Expand Down
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4997,7 +4997,7 @@ export function parseIdentifierOrArrow(
start: number
): ESTree.Identifier | ESTree.ArrowFunctionExpression {
if (parser.token === Token.Arrow) {
parser.flags = (parser.flags | Flags.SimpleParameterList) ^ Flags.SimpleParameterList;
parser.flags &= ~Flags.SimpleParameterList;
return parseArrowFunctionExpression(parser, context, [expr], /* isAsync */ 0, start);
}
return expr;
Expand Down

0 comments on commit e14cb97

Please sign in to comment.