Skip to content

Commit

Permalink
fix(parser): Fixed incorrect capitalized option
Browse files Browse the repository at this point in the history
  • Loading branch information
KFlash committed Jun 29, 2019
1 parent 0a09e9e commit 917a0f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.2.1",
"version": "1.2.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
4 changes: 2 additions & 2 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export interface Options {
// The flag to enable start and end offsets to each node
ranges?: boolean;
// Enable web compability
webCompat?: boolean;
webcompat?: boolean;
// The flag to enable line/column location information to each node
loc?: boolean;
// The flag to attach raw property to each literal and identifier node
Expand Down Expand Up @@ -202,7 +202,7 @@ export function parseSource(source: string, options: Options | void, context: Co
if (options.loc) context |= Context.OptionsLoc;
if (options.ranges) context |= Context.OptionsRanges;
if (options.lexical) context |= Context.OptionsLexical;
if (options.webCompat) context |= Context.OptionsWebCompat;
if (options.webcompat) context |= Context.OptionsWebCompat;
if (options.directives) context |= Context.OptionsDirectives | Context.OptionsRaw;
if (options.globalReturn) context |= Context.OptionsGlobalReturn;
if (options.raw) context |= Context.OptionsRaw;
Expand Down
2 changes: 1 addition & 1 deletion test/parser/miscellaneous/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('Expressions - API', () => {
loc: true,
globalReturn: true,
ranges: true,
webCompat: true,
webcompat: true,
module: true,
preserveParens: true,
lexical: true,
Expand Down

0 comments on commit 917a0f1

Please sign in to comment.