meriyah 4.1.5 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/meriyah.amd.js +6 -6
- package/dist/meriyah.amd.min.js +1 -1
- package/dist/meriyah.cjs +6 -6
- package/dist/meriyah.cjs.js +6 -6
- package/dist/meriyah.cjs.min.js +1 -1
- package/dist/meriyah.esm.js +6 -6
- package/dist/meriyah.esm.min.js +1 -1
- package/dist/meriyah.iife.js +6 -6
- package/dist/meriyah.iife.min.js +1 -1
- package/dist/meriyah.min.cjs +1 -1
- package/dist/meriyah.system.js +6 -6
- package/dist/meriyah.system.min.js +1 -1
- package/dist/meriyah.umd.cjs +6 -6
- package/dist/meriyah.umd.es5.js +6 -6
- package/dist/meriyah.umd.es5.min.js +1 -1
- package/dist/meriyah.umd.js +6 -6
- package/dist/meriyah.umd.min.cjs +1 -1
- package/dist/meriyah.umd.min.js +1 -1
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/parser.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/errors.ts +0 -2
- package/src/parser.ts +5 -4
package/dist/meriyah.iife.js
CHANGED
|
@@ -97,7 +97,6 @@ var meriyah = (function (exports) {
|
|
|
97
97
|
[89]: 'Illegal return statement',
|
|
98
98
|
[90]: 'The left hand side of the for-header binding declaration is not destructible',
|
|
99
99
|
[91]: 'new.target only allowed within functions',
|
|
100
|
-
[92]: "'Unexpected token: 'escaped keyword'",
|
|
101
100
|
[93]: "'#' not followed by identifier",
|
|
102
101
|
[99]: 'Invalid keyword',
|
|
103
102
|
[98]: "Can not use 'let' as a class name",
|
|
@@ -112,7 +111,6 @@ var meriyah = (function (exports) {
|
|
|
112
111
|
[104]: "Only '*' or '{...}' can be imported after default",
|
|
113
112
|
[105]: 'Trailing decorator may be followed by method',
|
|
114
113
|
[106]: "Decorators can't be used with a constructor",
|
|
115
|
-
[107]: "'%0' may not be used as an identifier in this context",
|
|
116
114
|
[108]: 'HTML comments are only allowed with web compatibility (Annex B)',
|
|
117
115
|
[109]: "The identifier 'let' must not be in expression position in strict mode",
|
|
118
116
|
[110]: 'Cannot assign to `eval` and `arguments` in strict mode',
|
|
@@ -5996,7 +5994,7 @@ var meriyah = (function (exports) {
|
|
|
5996
5994
|
function parseAwaitExpression(parser, context, inNew, inGroup, start, line, column) {
|
|
5997
5995
|
if (inGroup)
|
|
5998
5996
|
parser.destructible |= 128;
|
|
5999
|
-
if (context & 4194304) {
|
|
5997
|
+
if (context & 4194304 || (context & 2048 && context & 8192)) {
|
|
6000
5998
|
if (inNew)
|
|
6001
5999
|
report(parser, 0);
|
|
6002
6000
|
if (context & 8388608) {
|
|
@@ -6004,6 +6002,8 @@ var meriyah = (function (exports) {
|
|
|
6004
6002
|
}
|
|
6005
6003
|
nextToken(parser, context | 32768);
|
|
6006
6004
|
const argument = parseLeftHandSideExpression(parser, context, 0, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
|
|
6005
|
+
if (parser.token === 8457273)
|
|
6006
|
+
report(parser, 31);
|
|
6007
6007
|
parser.assignable = 2;
|
|
6008
6008
|
return finishNode(parser, context, start, line, column, {
|
|
6009
6009
|
type: 'AwaitExpression',
|
|
@@ -6011,7 +6011,7 @@ var meriyah = (function (exports) {
|
|
|
6011
6011
|
});
|
|
6012
6012
|
}
|
|
6013
6013
|
if (context & 2048)
|
|
6014
|
-
report(parser,
|
|
6014
|
+
report(parser, 95);
|
|
6015
6015
|
return parseIdentifierOrArrow(parser, context, start, line, column);
|
|
6016
6016
|
}
|
|
6017
6017
|
function parseFunctionBody(parser, context, scope, origin, firstRestricted, scopeError) {
|
|
@@ -7616,7 +7616,7 @@ var meriyah = (function (exports) {
|
|
|
7616
7616
|
const { tokenPos: piStart, linePos: plStart, colPos: pcStart } = parser;
|
|
7617
7617
|
nextToken(parser, context | 32768 | 1073741824);
|
|
7618
7618
|
const scope = context & 64 ? addChildScope(createScope(), 1024) : void 0;
|
|
7619
|
-
context = (context | 134217728
|
|
7619
|
+
context = (context | 134217728) ^ 134217728;
|
|
7620
7620
|
if (consumeOpt(parser, context, 16)) {
|
|
7621
7621
|
return parseParenthesizedArrow(parser, context, scope, [], canAssign, 0, start, line, column);
|
|
7622
7622
|
}
|
|
@@ -8769,7 +8769,7 @@ var meriyah = (function (exports) {
|
|
|
8769
8769
|
__proto__: null
|
|
8770
8770
|
});
|
|
8771
8771
|
|
|
8772
|
-
var version$1 = "4.
|
|
8772
|
+
var version$1 = "4.2.0";
|
|
8773
8773
|
|
|
8774
8774
|
const version = version$1;
|
|
8775
8775
|
function parseScript(source, options) {
|