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.system.js
CHANGED
|
@@ -105,7 +105,6 @@ System.register('meriyah', [], function (exports) {
|
|
|
105
105
|
[89]: 'Illegal return statement',
|
|
106
106
|
[90]: 'The left hand side of the for-header binding declaration is not destructible',
|
|
107
107
|
[91]: 'new.target only allowed within functions',
|
|
108
|
-
[92]: "'Unexpected token: 'escaped keyword'",
|
|
109
108
|
[93]: "'#' not followed by identifier",
|
|
110
109
|
[99]: 'Invalid keyword',
|
|
111
110
|
[98]: "Can not use 'let' as a class name",
|
|
@@ -120,7 +119,6 @@ System.register('meriyah', [], function (exports) {
|
|
|
120
119
|
[104]: "Only '*' or '{...}' can be imported after default",
|
|
121
120
|
[105]: 'Trailing decorator may be followed by method',
|
|
122
121
|
[106]: "Decorators can't be used with a constructor",
|
|
123
|
-
[107]: "'%0' may not be used as an identifier in this context",
|
|
124
122
|
[108]: 'HTML comments are only allowed with web compatibility (Annex B)',
|
|
125
123
|
[109]: "The identifier 'let' must not be in expression position in strict mode",
|
|
126
124
|
[110]: 'Cannot assign to `eval` and `arguments` in strict mode',
|
|
@@ -6004,7 +6002,7 @@ System.register('meriyah', [], function (exports) {
|
|
|
6004
6002
|
function parseAwaitExpression(parser, context, inNew, inGroup, start, line, column) {
|
|
6005
6003
|
if (inGroup)
|
|
6006
6004
|
parser.destructible |= 128;
|
|
6007
|
-
if (context & 4194304) {
|
|
6005
|
+
if (context & 4194304 || (context & 2048 && context & 8192)) {
|
|
6008
6006
|
if (inNew)
|
|
6009
6007
|
report(parser, 0);
|
|
6010
6008
|
if (context & 8388608) {
|
|
@@ -6012,6 +6010,8 @@ System.register('meriyah', [], function (exports) {
|
|
|
6012
6010
|
}
|
|
6013
6011
|
nextToken(parser, context | 32768);
|
|
6014
6012
|
const argument = parseLeftHandSideExpression(parser, context, 0, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
|
|
6013
|
+
if (parser.token === 8457273)
|
|
6014
|
+
report(parser, 31);
|
|
6015
6015
|
parser.assignable = 2;
|
|
6016
6016
|
return finishNode(parser, context, start, line, column, {
|
|
6017
6017
|
type: 'AwaitExpression',
|
|
@@ -6019,7 +6019,7 @@ System.register('meriyah', [], function (exports) {
|
|
|
6019
6019
|
});
|
|
6020
6020
|
}
|
|
6021
6021
|
if (context & 2048)
|
|
6022
|
-
report(parser,
|
|
6022
|
+
report(parser, 95);
|
|
6023
6023
|
return parseIdentifierOrArrow(parser, context, start, line, column);
|
|
6024
6024
|
}
|
|
6025
6025
|
function parseFunctionBody(parser, context, scope, origin, firstRestricted, scopeError) {
|
|
@@ -7624,7 +7624,7 @@ System.register('meriyah', [], function (exports) {
|
|
|
7624
7624
|
const { tokenPos: piStart, linePos: plStart, colPos: pcStart } = parser;
|
|
7625
7625
|
nextToken(parser, context | 32768 | 1073741824);
|
|
7626
7626
|
const scope = context & 64 ? addChildScope(createScope(), 1024) : void 0;
|
|
7627
|
-
context = (context | 134217728
|
|
7627
|
+
context = (context | 134217728) ^ 134217728;
|
|
7628
7628
|
if (consumeOpt(parser, context, 16)) {
|
|
7629
7629
|
return parseParenthesizedArrow(parser, context, scope, [], canAssign, 0, start, line, column);
|
|
7630
7630
|
}
|
|
@@ -8778,7 +8778,7 @@ System.register('meriyah', [], function (exports) {
|
|
|
8778
8778
|
});
|
|
8779
8779
|
exports('ESTree', estree);
|
|
8780
8780
|
|
|
8781
|
-
var version$1 = "4.
|
|
8781
|
+
var version$1 = "4.2.0";
|
|
8782
8782
|
|
|
8783
8783
|
const version = exports('version', version$1);
|
|
8784
8784
|
function parseScript(source, options) {
|