Skip to content

Commit

Permalink
fix(parser): fixes #58
Browse files Browse the repository at this point in the history
  • Loading branch information
KFlash committed Nov 13, 2019
1 parent e99a8a8 commit bbfc5c2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "meriyah",
"version": "1.9.1",
"version": "1.9.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
2 changes: 0 additions & 2 deletions src/errors.ts
@@ -1,6 +1,5 @@
import { ParserState } from './common';

/*@internal*/
export const enum Errors {
Unexpected,
StrictOctalEscape,
Expand Down Expand Up @@ -168,7 +167,6 @@ export const enum Errors {
ImportMetaOutsideModule
}

/*@internal*/
export const errorMessages: {
[key: string]: string;
} = {
Expand Down
2 changes: 1 addition & 1 deletion src/lexer/scan.ts
Expand Up @@ -190,7 +190,7 @@ export function nextToken(parser: ParserState, context: Context): void {
export function scanSingleToken(parser: ParserState, context: Context, state: LexerState): Token {
const isStartOfLine = parser.index === 0;

let source = parser.source;
const source = parser.source;

while (parser.index < parser.end) {
parser.tokenPos = parser.index;
Expand Down
2 changes: 1 addition & 1 deletion src/meriyah.ts
Expand Up @@ -26,4 +26,4 @@ export function parse(source: string, options?: Options): ESTree.Program {
export { Options, ESTree };

// Current version
export const version = '1.9.1';
export const version = '1.9.2';

0 comments on commit bbfc5c2

Please sign in to comment.