Skip to content

Commit

Permalink
chore(all): v. 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
KFlash committed Apr 1, 2020
1 parent 69bdb3f commit c4c5b11
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 89 deletions.
79 changes: 12 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/parser/expressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1844,8 +1844,8 @@ export function parseArrowFunction(
return (context & 0b00000000000000000000000000000010) === 0b00000000000000000000000000000010
? {
type: 'ArrowFunctionExpression',
body,
params,
body,
async: isAsync === 1,
expression,
start,
Expand All @@ -1854,8 +1854,8 @@ export function parseArrowFunction(
}
: {
type: 'ArrowFunctionExpression',
body,
params,
body,
async: isAsync === 1,
expression
};
Expand Down Expand Up @@ -2945,22 +2945,22 @@ export function parseFunctionLiteral(
return (context & 0b00000000000000000000000000000010) === 0b00000000000000000000000000000010
? {
type,
id,
params,
body,
async: (context & Context.InAwaitContext) === Context.InAwaitContext,
generator: (context & Context.InYieldContext) === Context.InYieldContext,
id,
start,
end: parser.endIndex,
loc: setLoc(parser, line, column)
}
: {
type,
id,
params,
body,
async: (context & Context.InAwaitContext) === Context.InAwaitContext,
generator: (context & Context.InYieldContext) === Context.InYieldContext,
id
generator: (context & Context.InYieldContext) === Context.InYieldContext
};
}

Expand Down
14 changes: 7 additions & 7 deletions src/parser/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,16 +503,16 @@ export function parseExportDeclaration(parser: ParserState, context: Context, sc
return (context & 0b00000000000000000000000000000010) === 0b00000000000000000000000000000010
? {
type: 'ExportNamedDeclaration',
source,
specifiers,
source,
start,
end: parser.endIndex,
loc: setLoc(parser, line, column)
}
: {
type: 'ExportNamedDeclaration',
source,
specifiers
specifiers,
source
};
}
// 'export' '*' 'from' ModuleSpecifier ';'
Expand Down Expand Up @@ -672,17 +672,17 @@ export function parseExportDeclaration(parser: ParserState, context: Context, sc
return (context & 0b00000000000000000000000000000010) === 0b00000000000000000000000000000010
? {
type: 'ExportNamedDeclaration',
source,
specifiers,
declaration,
specifiers,
source,
start,
end: parser.endIndex,
loc: setLoc(parser, line, column)
}
: {
type: 'ExportNamedDeclaration',
source,
declaration,
specifiers,
declaration
source
};
}
16 changes: 8 additions & 8 deletions src/parser/statements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -662,19 +662,19 @@ export function parseForStatementWithVariableDeclarations(
return (context & 0b00000000000000000000000000000010) === 0b00000000000000000000000000000010
? {
type: 'ForOfStatement',
body,
left: init,
right,
body,
await: false,
start: curStart,
end: parser.endIndex,
loc: setLoc(parser, curLine, curColumn)
}
: {
type: 'ForOfStatement',
body,
left: init,
right,
body,
await: false
};
}
Expand Down Expand Up @@ -751,20 +751,20 @@ export function parseForStatementWithVariableDeclarations(
return (context & 0b00000000000000000000000000000010) === 0b00000000000000000000000000000010
? {
type: 'ForStatement',
body,
init,
test,
update,
body,
start: curStart,
end: parser.endIndex,
loc: setLoc(parser, curLine, curColumn)
}
: {
type: 'ForStatement',
body,
init,
test,
update
update,
body
};
}

Expand Down Expand Up @@ -933,20 +933,20 @@ export function parseForStatement(
return (context & 0b00000000000000000000000000000010) === 0b00000000000000000000000000000010
? {
type: 'ForStatement',
body,
init,
test,
update,
body,
start: curStart,
end: parser.endIndex,
loc: setLoc(parser, curLine, curColumn)
}
: {
type: 'ForStatement',
body,
init,
test,
update
update,
body
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/seafox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ export function parse(source: string, options?: Options): Types.Program {
return parseRoot(source, Context.InGlobal, options);
}

export const version = '1.4.1';
export const version = '1.4.2';
2 changes: 1 addition & 1 deletion test/parser/miscellaneous/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fail('Miscellaneous - Enum (fail)', [
['1 ??= 1;', Context.Strict],
['arguments ||= 20;', Context.Strict],
['async x => (enum) = 1', Context.OptionsDisableWebCompat | Context.Strict | Context.Module],
//['({static * enum(){}});', Context.OptionsDisableWebCompat],
['({static * enum(){}});', Context.OptionsDisableWebCompat],
['({static set enum(x){}});', Context.OptionsDisableWebCompat | Context.Strict | Context.Module],
['class x {enum: x}', Context.OptionsDisableWebCompat],
['enum', Context.OptionsDisableWebCompat],
Expand Down

0 comments on commit c4c5b11

Please sign in to comment.