Comparing version 0.2.5 to 0.2.6
{ | ||
"name": "meriyah", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "A 100% compliant, self-hosted javascript parser with high focus on both performance and stability", | ||
@@ -5,0 +5,0 @@ "main": "dist/meriyah.umd.js", |
@@ -0,0 +0,0 @@ /** |
@@ -14,8 +14,8 @@ import { nextCodePoint, CharTypes, CharFlags, ScannerState } from './'; | ||
if (index === parser.end) return; | ||
if (parser.nextCP === Chars.ByteOrderMark) { | ||
parser.nextCP = parser.source.charCodeAt(++index); | ||
parser.index = index; | ||
if (parser.nextCP === Chars.ByteOrderMark || parser.nextCP === Chars.ZeroWidthNoBreakSpace) { | ||
parser.index = ++index; | ||
parser.nextCP = parser.source.charCodeAt(index); | ||
} | ||
if (index < parser.end && parser.source.charCodeAt(index) === Chars.Hash) { | ||
if (index < parser.end && parser.nextCP === Chars.Hash) { | ||
index++; | ||
@@ -22,0 +22,0 @@ if (index < parser.end && parser.source.charCodeAt(index) === Chars.Exclamation) { |
@@ -508,6 +508,8 @@ import { skipSingleLineComment, skipMultiLineComment, ScannerState } from './'; | ||
} | ||
if (isIDStart(parser.nextCP) || consumeMultiUnitCodePoint(parser, parser.nextCP)) { | ||
if (isIDStart(first) || consumeMultiUnitCodePoint(parser, first)) { | ||
return scanIdentifier(parser, context); | ||
} | ||
if (isExoticECMAScriptWhitespace(parser.nextCP)) { | ||
if (isExoticECMAScriptWhitespace(first)) { | ||
nextCodePoint(parser); | ||
@@ -514,0 +516,0 @@ continue; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2289557
42464
0