meriyah 4.1.5-dev.20210524 → 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 +2 -2
- package/src/errors.ts +0 -2
- package/src/parser.ts +5 -4
package/dist/meriyah.umd.js
CHANGED
|
@@ -100,7 +100,6 @@
|
|
|
100
100
|
[89]: 'Illegal return statement',
|
|
101
101
|
[90]: 'The left hand side of the for-header binding declaration is not destructible',
|
|
102
102
|
[91]: 'new.target only allowed within functions',
|
|
103
|
-
[92]: "'Unexpected token: 'escaped keyword'",
|
|
104
103
|
[93]: "'#' not followed by identifier",
|
|
105
104
|
[99]: 'Invalid keyword',
|
|
106
105
|
[98]: "Can not use 'let' as a class name",
|
|
@@ -115,7 +114,6 @@
|
|
|
115
114
|
[104]: "Only '*' or '{...}' can be imported after default",
|
|
116
115
|
[105]: 'Trailing decorator may be followed by method',
|
|
117
116
|
[106]: "Decorators can't be used with a constructor",
|
|
118
|
-
[107]: "'%0' may not be used as an identifier in this context",
|
|
119
117
|
[108]: 'HTML comments are only allowed with web compatibility (Annex B)',
|
|
120
118
|
[109]: "The identifier 'let' must not be in expression position in strict mode",
|
|
121
119
|
[110]: 'Cannot assign to `eval` and `arguments` in strict mode',
|
|
@@ -5999,7 +5997,7 @@
|
|
|
5999
5997
|
function parseAwaitExpression(parser, context, inNew, inGroup, start, line, column) {
|
|
6000
5998
|
if (inGroup)
|
|
6001
5999
|
parser.destructible |= 128;
|
|
6002
|
-
if (context & 4194304) {
|
|
6000
|
+
if (context & 4194304 || (context & 2048 && context & 8192)) {
|
|
6003
6001
|
if (inNew)
|
|
6004
6002
|
report(parser, 0);
|
|
6005
6003
|
if (context & 8388608) {
|
|
@@ -6007,6 +6005,8 @@
|
|
|
6007
6005
|
}
|
|
6008
6006
|
nextToken(parser, context | 32768);
|
|
6009
6007
|
const argument = parseLeftHandSideExpression(parser, context, 0, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
|
|
6008
|
+
if (parser.token === 8457273)
|
|
6009
|
+
report(parser, 31);
|
|
6010
6010
|
parser.assignable = 2;
|
|
6011
6011
|
return finishNode(parser, context, start, line, column, {
|
|
6012
6012
|
type: 'AwaitExpression',
|
|
@@ -6014,7 +6014,7 @@
|
|
|
6014
6014
|
});
|
|
6015
6015
|
}
|
|
6016
6016
|
if (context & 2048)
|
|
6017
|
-
report(parser,
|
|
6017
|
+
report(parser, 95);
|
|
6018
6018
|
return parseIdentifierOrArrow(parser, context, start, line, column);
|
|
6019
6019
|
}
|
|
6020
6020
|
function parseFunctionBody(parser, context, scope, origin, firstRestricted, scopeError) {
|
|
@@ -7619,7 +7619,7 @@
|
|
|
7619
7619
|
const { tokenPos: piStart, linePos: plStart, colPos: pcStart } = parser;
|
|
7620
7620
|
nextToken(parser, context | 32768 | 1073741824);
|
|
7621
7621
|
const scope = context & 64 ? addChildScope(createScope(), 1024) : void 0;
|
|
7622
|
-
context = (context | 134217728
|
|
7622
|
+
context = (context | 134217728) ^ 134217728;
|
|
7623
7623
|
if (consumeOpt(parser, context, 16)) {
|
|
7624
7624
|
return parseParenthesizedArrow(parser, context, scope, [], canAssign, 0, start, line, column);
|
|
7625
7625
|
}
|
|
@@ -8772,7 +8772,7 @@
|
|
|
8772
8772
|
__proto__: null
|
|
8773
8773
|
});
|
|
8774
8774
|
|
|
8775
|
-
var version$1 = "4.
|
|
8775
|
+
var version$1 = "4.2.0";
|
|
8776
8776
|
|
|
8777
8777
|
const version = version$1;
|
|
8778
8778
|
function parseScript(source, options) {
|