meriyah 4.3.1 → 4.3.3
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 +18 -0
- package/dist/meriyah.amd.js +309 -305
- package/dist/meriyah.amd.min.js +1 -1
- package/dist/meriyah.cjs +309 -305
- package/dist/meriyah.cjs.js +309 -305
- package/dist/meriyah.cjs.min.js +1 -1
- package/dist/meriyah.esm.js +309 -305
- package/dist/meriyah.esm.min.js +1 -1
- package/dist/meriyah.esm.min.mjs +1 -1
- package/dist/meriyah.esm.mjs +309 -305
- package/dist/meriyah.iife.js +309 -305
- package/dist/meriyah.iife.min.js +1 -1
- package/dist/meriyah.min.cjs +1 -1
- package/dist/meriyah.system.js +309 -305
- package/dist/meriyah.system.min.js +1 -1
- package/dist/meriyah.umd.cjs +309 -305
- package/dist/meriyah.umd.es5.js +309 -305
- package/dist/meriyah.umd.es5.min.js +1 -1
- package/dist/meriyah.umd.js +309 -305
- package/dist/meriyah.umd.min.cjs +1 -1
- package/dist/meriyah.umd.min.js +1 -1
- package/dist/src/errors.d.ts +125 -124
- 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 +2 -0
- package/src/lexer/identifier.ts +1 -1
- package/src/parser.ts +3 -1
package/dist/meriyah.system.js
CHANGED
|
@@ -21,7 +21,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
21
21
|
[8]: 'Octal literals are not allowed in strict mode',
|
|
22
22
|
[7]: 'Decimal integer literals with a leading zero are forbidden in strict mode',
|
|
23
23
|
[9]: 'Expected number in radix %0',
|
|
24
|
-
[
|
|
24
|
+
[146]: 'Invalid left-hand side assignment to a destructible right-hand side',
|
|
25
25
|
[10]: 'Non-number found after exponent indicator',
|
|
26
26
|
[11]: 'Invalid BigIntLiteral',
|
|
27
27
|
[12]: 'No identifiers allowed directly after numeric literal',
|
|
@@ -42,9 +42,9 @@ System.register('meriyah', [], (function (exports) {
|
|
|
42
42
|
[27]: 'Member access on super must be in a method',
|
|
43
43
|
[29]: 'Await expression not allowed in formal parameter',
|
|
44
44
|
[30]: 'Yield expression not allowed in formal parameter',
|
|
45
|
-
[
|
|
45
|
+
[93]: "Unexpected token: 'escaped keyword'",
|
|
46
46
|
[31]: 'Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses',
|
|
47
|
-
[
|
|
47
|
+
[120]: 'Async functions can only be declared at the top level or inside a block',
|
|
48
48
|
[32]: 'Unterminated regular expression',
|
|
49
49
|
[33]: 'Unexpected regular expression flag',
|
|
50
50
|
[34]: "Duplicate regular expression flag '%0'",
|
|
@@ -54,125 +54,126 @@ System.register('meriyah', [], (function (exports) {
|
|
|
54
54
|
[38]: 'Function name may not contain any reserved words or be eval or arguments in strict mode',
|
|
55
55
|
[39]: 'The rest operator is missing an argument',
|
|
56
56
|
[40]: 'A getter cannot be a generator',
|
|
57
|
-
[41]: 'A
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[45]: "
|
|
63
|
-
[46]:
|
|
64
|
-
[47]: 'The
|
|
65
|
-
[48]: '
|
|
66
|
-
[49]:
|
|
67
|
-
[50]:
|
|
68
|
-
[51]: '
|
|
69
|
-
[52]: '
|
|
70
|
-
[53]: 'Invalid
|
|
71
|
-
[54]: '
|
|
72
|
-
[55]: '
|
|
73
|
-
[56]: '
|
|
74
|
-
[57]:
|
|
75
|
-
[58]: '
|
|
76
|
-
[59]: 'Invalid
|
|
77
|
-
[60]: '
|
|
78
|
-
[61]: '
|
|
79
|
-
[62]:
|
|
80
|
-
[63]: "
|
|
81
|
-
[64]: '
|
|
82
|
-
[65]: '
|
|
83
|
-
[66]: 'Illegal
|
|
84
|
-
[67]: '
|
|
85
|
-
[68]: '
|
|
86
|
-
[69]: '
|
|
87
|
-
[70]: '
|
|
88
|
-
[71]: '
|
|
89
|
-
[
|
|
90
|
-
[74]: 'In
|
|
91
|
-
[75]: '
|
|
92
|
-
[76]:
|
|
93
|
-
[77]: '
|
|
94
|
-
[78]: 'Invalid
|
|
95
|
-
[79]: '
|
|
96
|
-
[80]: '
|
|
97
|
-
[
|
|
98
|
-
[
|
|
99
|
-
[
|
|
100
|
-
[84]: 'Catch clause parameter
|
|
101
|
-
[85]: '
|
|
102
|
-
[86]: '
|
|
103
|
-
[87]: '
|
|
104
|
-
[88]: '
|
|
105
|
-
[89]: '
|
|
106
|
-
[90]: '
|
|
107
|
-
[91]: '
|
|
108
|
-
[
|
|
109
|
-
[
|
|
110
|
-
[
|
|
111
|
-
[
|
|
112
|
-
[
|
|
113
|
-
[
|
|
114
|
-
[95]: '
|
|
115
|
-
[
|
|
116
|
-
[101]: '
|
|
117
|
-
[102]: '
|
|
118
|
-
[103]: '
|
|
119
|
-
[104]:
|
|
120
|
-
[105]: '
|
|
121
|
-
[106]:
|
|
122
|
-
[
|
|
123
|
-
[109]:
|
|
124
|
-
[110]: '
|
|
125
|
-
[111]:
|
|
126
|
-
[112]:
|
|
127
|
-
[113]: 'Block body arrows can not be immediately
|
|
128
|
-
[114]: '
|
|
129
|
-
[115]: 'Unexpected
|
|
130
|
-
[116]: '
|
|
131
|
-
[117]: '
|
|
132
|
-
[118]: '
|
|
133
|
-
[
|
|
134
|
-
[121]: '
|
|
135
|
-
[122]: '
|
|
136
|
-
[123]: '
|
|
137
|
-
[
|
|
138
|
-
[
|
|
139
|
-
[
|
|
140
|
-
[127]: '
|
|
141
|
-
[128]: '
|
|
142
|
-
[129]: '
|
|
143
|
-
[
|
|
144
|
-
[132]:
|
|
145
|
-
[133]: '
|
|
146
|
-
[134]:
|
|
147
|
-
[135]:
|
|
148
|
-
[136]: 'import()
|
|
149
|
-
[137]: '
|
|
150
|
-
[138]: '
|
|
151
|
-
[139]:
|
|
152
|
-
[140]: "
|
|
153
|
-
[141]: "
|
|
154
|
-
[
|
|
155
|
-
[
|
|
156
|
-
[143]: '
|
|
157
|
-
[
|
|
158
|
-
[
|
|
159
|
-
[
|
|
160
|
-
[149]: '
|
|
161
|
-
[150]: '
|
|
162
|
-
[151]:
|
|
163
|
-
[152]: "
|
|
164
|
-
[153]: "'%0'
|
|
165
|
-
[154]: '
|
|
166
|
-
[155]: '
|
|
167
|
-
[156]: '
|
|
168
|
-
[157]: '
|
|
169
|
-
[158]: '
|
|
170
|
-
[159]: '
|
|
171
|
-
[160]: '
|
|
172
|
-
[161]: 'Invalid
|
|
173
|
-
[162]: 'Invalid optional chain from
|
|
174
|
-
[163]: '
|
|
175
|
-
[164]: '
|
|
57
|
+
[41]: 'A setter cannot be a generator',
|
|
58
|
+
[42]: 'A computed property name must be followed by a colon or paren',
|
|
59
|
+
[131]: 'Object literal keys that are strings or numbers must be a method or have a colon',
|
|
60
|
+
[44]: 'Found `* async x(){}` but this should be `async * x(){}`',
|
|
61
|
+
[43]: 'Getters and setters can not be generators',
|
|
62
|
+
[45]: "'%0' can not be generator method",
|
|
63
|
+
[46]: "No line break is allowed after '=>'",
|
|
64
|
+
[47]: 'The left-hand side of the arrow can only be destructed through assignment',
|
|
65
|
+
[48]: 'The binding declaration is not destructible',
|
|
66
|
+
[49]: 'Async arrow can not be followed by new expression',
|
|
67
|
+
[50]: "Classes may not have a static property named 'prototype'",
|
|
68
|
+
[51]: 'Class constructor may not be a %0',
|
|
69
|
+
[52]: 'Duplicate constructor method in class',
|
|
70
|
+
[53]: 'Invalid increment/decrement operand',
|
|
71
|
+
[54]: 'Invalid use of `new` keyword on an increment/decrement expression',
|
|
72
|
+
[55]: '`=>` is an invalid assignment target',
|
|
73
|
+
[56]: 'Rest element may not have a trailing comma',
|
|
74
|
+
[57]: 'Missing initializer in %0 declaration',
|
|
75
|
+
[58]: "'for-%0' loop head declarations can not have an initializer",
|
|
76
|
+
[59]: 'Invalid left-hand side in for-%0 loop: Must have a single binding',
|
|
77
|
+
[60]: 'Invalid shorthand property initializer',
|
|
78
|
+
[61]: 'Property name __proto__ appears more than once in object literal',
|
|
79
|
+
[62]: 'Let is disallowed as a lexically bound name',
|
|
80
|
+
[63]: "Invalid use of '%0' inside new expression",
|
|
81
|
+
[64]: "Illegal 'use strict' directive in function with non-simple parameter list",
|
|
82
|
+
[65]: 'Identifier "let" disallowed as left-hand side expression in strict mode',
|
|
83
|
+
[66]: 'Illegal continue statement',
|
|
84
|
+
[67]: 'Illegal break statement',
|
|
85
|
+
[68]: 'Cannot have `let[...]` as a var name in strict mode',
|
|
86
|
+
[69]: 'Invalid destructuring assignment target',
|
|
87
|
+
[70]: 'Rest parameter may not have a default initializer',
|
|
88
|
+
[71]: 'The rest argument must the be last parameter',
|
|
89
|
+
[72]: 'Invalid rest argument',
|
|
90
|
+
[74]: 'In strict mode code, functions can only be declared at top level or inside a block',
|
|
91
|
+
[75]: 'In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement',
|
|
92
|
+
[76]: 'Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement',
|
|
93
|
+
[77]: "Class declaration can't appear in single-statement context",
|
|
94
|
+
[78]: 'Invalid left-hand side in for-%0',
|
|
95
|
+
[79]: 'Invalid assignment in for-%0',
|
|
96
|
+
[80]: 'for await (... of ...) is only valid in async functions and async generators',
|
|
97
|
+
[81]: 'The first token after the template expression should be a continuation of the template',
|
|
98
|
+
[83]: '`let` declaration not allowed here and `let` cannot be a regular var name in strict mode',
|
|
99
|
+
[82]: '`let \n [` is a restricted production at the start of a statement',
|
|
100
|
+
[84]: 'Catch clause requires exactly one parameter, not more (and no trailing comma)',
|
|
101
|
+
[85]: 'Catch clause parameter does not support default values',
|
|
102
|
+
[86]: 'Missing catch or finally after try',
|
|
103
|
+
[87]: 'More than one default clause in switch statement',
|
|
104
|
+
[88]: 'Illegal newline after throw',
|
|
105
|
+
[89]: 'Strict mode code may not include a with statement',
|
|
106
|
+
[90]: 'Illegal return statement',
|
|
107
|
+
[91]: 'The left hand side of the for-header binding declaration is not destructible',
|
|
108
|
+
[92]: 'new.target only allowed within functions',
|
|
109
|
+
[94]: "'#' not followed by identifier",
|
|
110
|
+
[100]: 'Invalid keyword',
|
|
111
|
+
[99]: "Can not use 'let' as a class name",
|
|
112
|
+
[98]: "'A lexical declaration can't define a 'let' binding",
|
|
113
|
+
[97]: 'Can not use `let` as variable name in strict mode',
|
|
114
|
+
[95]: "'%0' may not be used as an identifier in this context",
|
|
115
|
+
[96]: 'Await is only valid in async functions',
|
|
116
|
+
[101]: 'The %0 keyword can only be used with the module goal',
|
|
117
|
+
[102]: 'Unicode codepoint must not be greater than 0x10FFFF',
|
|
118
|
+
[103]: '%0 source must be string',
|
|
119
|
+
[104]: 'Only a identifier can be used to indicate alias',
|
|
120
|
+
[105]: "Only '*' or '{...}' can be imported after default",
|
|
121
|
+
[106]: 'Trailing decorator may be followed by method',
|
|
122
|
+
[107]: "Decorators can't be used with a constructor",
|
|
123
|
+
[109]: 'HTML comments are only allowed with web compatibility (Annex B)',
|
|
124
|
+
[110]: "The identifier 'let' must not be in expression position in strict mode",
|
|
125
|
+
[111]: 'Cannot assign to `eval` and `arguments` in strict mode',
|
|
126
|
+
[112]: "The left-hand side of a for-of loop may not start with 'let'",
|
|
127
|
+
[113]: 'Block body arrows can not be immediately invoked without a group',
|
|
128
|
+
[114]: 'Block body arrows can not be immediately accessed without a group',
|
|
129
|
+
[115]: 'Unexpected strict mode reserved word',
|
|
130
|
+
[116]: 'Unexpected eval or arguments in strict mode',
|
|
131
|
+
[117]: 'Decorators must not be followed by a semicolon',
|
|
132
|
+
[118]: 'Calling delete on expression not allowed in strict mode',
|
|
133
|
+
[119]: 'Pattern can not have a tail',
|
|
134
|
+
[121]: 'Can not have a `yield` expression on the left side of a ternary',
|
|
135
|
+
[122]: 'An arrow function can not have a postfix update operator',
|
|
136
|
+
[123]: 'Invalid object literal key character after generator star',
|
|
137
|
+
[124]: 'Private fields can not be deleted',
|
|
138
|
+
[126]: 'Classes may not have a field called constructor',
|
|
139
|
+
[125]: 'Classes may not have a private element named constructor',
|
|
140
|
+
[127]: 'A class field initializer may not contain arguments',
|
|
141
|
+
[128]: 'Generators can only be declared at the top level or inside a block',
|
|
142
|
+
[129]: 'Async methods are a restricted production and cannot have a newline following it',
|
|
143
|
+
[130]: 'Unexpected character after object literal property name',
|
|
144
|
+
[132]: 'Invalid key token',
|
|
145
|
+
[133]: "Label '%0' has already been declared",
|
|
146
|
+
[134]: 'continue statement must be nested within an iteration statement',
|
|
147
|
+
[135]: "Undefined label '%0'",
|
|
148
|
+
[136]: 'Trailing comma is disallowed inside import(...) arguments',
|
|
149
|
+
[137]: 'import() requires exactly one argument',
|
|
150
|
+
[138]: 'Cannot use new with import(...)',
|
|
151
|
+
[139]: '... is not allowed in import()',
|
|
152
|
+
[140]: "Expected '=>'",
|
|
153
|
+
[141]: "Duplicate binding '%0'",
|
|
154
|
+
[142]: "Cannot export a duplicate name '%0'",
|
|
155
|
+
[145]: 'Duplicate %0 for-binding',
|
|
156
|
+
[143]: "Exported binding '%0' needs to refer to a top-level declared variable",
|
|
157
|
+
[144]: 'Unexpected private field',
|
|
158
|
+
[148]: 'Numeric separators are not allowed at the end of numeric literals',
|
|
159
|
+
[147]: 'Only one underscore is allowed as numeric separator',
|
|
160
|
+
[149]: 'JSX value should be either an expression or a quoted JSX text',
|
|
161
|
+
[150]: 'Expected corresponding JSX closing tag for %0',
|
|
162
|
+
[151]: 'Adjacent JSX elements must be wrapped in an enclosing tag',
|
|
163
|
+
[152]: "JSX attributes must only be assigned a non-empty 'expression'",
|
|
164
|
+
[153]: "'%0' has already been declared",
|
|
165
|
+
[154]: "'%0' shadowed a catch clause binding",
|
|
166
|
+
[155]: 'Dot property must be an identifier',
|
|
167
|
+
[156]: 'Encountered invalid input after spread/rest argument',
|
|
168
|
+
[157]: 'Catch without try',
|
|
169
|
+
[158]: 'Finally without try',
|
|
170
|
+
[159]: 'Expected corresponding closing tag for JSX fragment',
|
|
171
|
+
[160]: 'Coalescing and logical operators used together in the same expression must be disambiguated with parentheses',
|
|
172
|
+
[161]: 'Invalid tagged template on optional chain',
|
|
173
|
+
[162]: 'Invalid optional chain from super property',
|
|
174
|
+
[163]: 'Invalid optional chain from new expression',
|
|
175
|
+
[164]: 'Cannot use "import.meta" outside a module',
|
|
176
|
+
[165]: 'Leading decorators must be attached to a class declaration'
|
|
176
177
|
};
|
|
177
178
|
class ParseError extends SyntaxError {
|
|
178
179
|
constructor(startindex, line, column, type, ...params) {
|
|
@@ -1104,7 +1105,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1104
1105
|
case -4:
|
|
1105
1106
|
report(state, 6);
|
|
1106
1107
|
case -5:
|
|
1107
|
-
report(state,
|
|
1108
|
+
report(state, 102);
|
|
1108
1109
|
}
|
|
1109
1110
|
}
|
|
1110
1111
|
|
|
@@ -1217,7 +1218,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1217
1218
|
while (CharTypes[char] & (64 | 4096)) {
|
|
1218
1219
|
if (char === 95) {
|
|
1219
1220
|
if (!allowSeparator)
|
|
1220
|
-
report(parser,
|
|
1221
|
+
report(parser, 147);
|
|
1221
1222
|
allowSeparator = 0;
|
|
1222
1223
|
char = advanceChar(parser);
|
|
1223
1224
|
continue;
|
|
@@ -1228,7 +1229,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1228
1229
|
char = advanceChar(parser);
|
|
1229
1230
|
}
|
|
1230
1231
|
if (digits === 0 || !allowSeparator) {
|
|
1231
|
-
report(parser, digits === 0 ? 19 :
|
|
1232
|
+
report(parser, digits === 0 ? 19 : 148);
|
|
1232
1233
|
}
|
|
1233
1234
|
}
|
|
1234
1235
|
else if ((char | 32) === 111) {
|
|
@@ -1237,7 +1238,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1237
1238
|
while (CharTypes[char] & (32 | 4096)) {
|
|
1238
1239
|
if (char === 95) {
|
|
1239
1240
|
if (!allowSeparator) {
|
|
1240
|
-
report(parser,
|
|
1241
|
+
report(parser, 147);
|
|
1241
1242
|
}
|
|
1242
1243
|
allowSeparator = 0;
|
|
1243
1244
|
char = advanceChar(parser);
|
|
@@ -1249,7 +1250,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1249
1250
|
char = advanceChar(parser);
|
|
1250
1251
|
}
|
|
1251
1252
|
if (digits === 0 || !allowSeparator) {
|
|
1252
|
-
report(parser, digits === 0 ? 0 :
|
|
1253
|
+
report(parser, digits === 0 ? 0 : 148);
|
|
1253
1254
|
}
|
|
1254
1255
|
}
|
|
1255
1256
|
else if ((char | 32) === 98) {
|
|
@@ -1258,7 +1259,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1258
1259
|
while (CharTypes[char] & (128 | 4096)) {
|
|
1259
1260
|
if (char === 95) {
|
|
1260
1261
|
if (!allowSeparator) {
|
|
1261
|
-
report(parser,
|
|
1262
|
+
report(parser, 147);
|
|
1262
1263
|
}
|
|
1263
1264
|
allowSeparator = 0;
|
|
1264
1265
|
char = advanceChar(parser);
|
|
@@ -1270,7 +1271,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1270
1271
|
char = advanceChar(parser);
|
|
1271
1272
|
}
|
|
1272
1273
|
if (digits === 0 || !allowSeparator) {
|
|
1273
|
-
report(parser, digits === 0 ? 0 :
|
|
1274
|
+
report(parser, digits === 0 ? 0 : 148);
|
|
1274
1275
|
}
|
|
1275
1276
|
}
|
|
1276
1277
|
else if (CharTypes[char] & 32) {
|
|
@@ -1303,7 +1304,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1303
1304
|
if (char === 95) {
|
|
1304
1305
|
char = advanceChar(parser);
|
|
1305
1306
|
if (char === 95 || kind & 32) {
|
|
1306
|
-
reportScannerError(parser.index, parser.line, parser.index + 1,
|
|
1307
|
+
reportScannerError(parser.index, parser.line, parser.index + 1, 147);
|
|
1307
1308
|
}
|
|
1308
1309
|
allowSeparator = 1;
|
|
1309
1310
|
continue;
|
|
@@ -1314,7 +1315,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1314
1315
|
--digit;
|
|
1315
1316
|
}
|
|
1316
1317
|
if (allowSeparator) {
|
|
1317
|
-
reportScannerError(parser.index, parser.line, parser.index + 1,
|
|
1318
|
+
reportScannerError(parser.index, parser.line, parser.index + 1, 148);
|
|
1318
1319
|
}
|
|
1319
1320
|
if (digit >= 0 && !isIdentifierStart(char) && char !== 46) {
|
|
1320
1321
|
parser.tokenValue = value;
|
|
@@ -1379,7 +1380,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1379
1380
|
const { index } = parser;
|
|
1380
1381
|
char = advanceChar(parser);
|
|
1381
1382
|
if (char === 95) {
|
|
1382
|
-
reportScannerError(parser.index, parser.line, parser.index + 1,
|
|
1383
|
+
reportScannerError(parser.index, parser.line, parser.index + 1, 147);
|
|
1383
1384
|
}
|
|
1384
1385
|
allowSeparator = 1;
|
|
1385
1386
|
ret += parser.source.substring(start, index);
|
|
@@ -1390,7 +1391,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1390
1391
|
char = advanceChar(parser);
|
|
1391
1392
|
}
|
|
1392
1393
|
if (allowSeparator) {
|
|
1393
|
-
reportScannerError(parser.index, parser.line, parser.index + 1,
|
|
1394
|
+
reportScannerError(parser.index, parser.line, parser.index + 1, 148);
|
|
1394
1395
|
}
|
|
1395
1396
|
return ret + parser.source.substring(start, parser.index);
|
|
1396
1397
|
}
|
|
@@ -1479,7 +1480,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1479
1480
|
function scanIdentifier(parser, context, isValidAsKeyword) {
|
|
1480
1481
|
while (isIdPart[advanceChar(parser)]) { }
|
|
1481
1482
|
parser.tokenValue = parser.source.slice(parser.tokenPos, parser.index);
|
|
1482
|
-
return parser.currentChar !== 92 && parser.currentChar
|
|
1483
|
+
return parser.currentChar !== 92 && parser.currentChar <= 0x7e
|
|
1483
1484
|
? descKeywordTable[parser.tokenValue] || 208897
|
|
1484
1485
|
: scanIdentifierSlowCase(parser, context, 0, isValidAsKeyword);
|
|
1485
1486
|
}
|
|
@@ -1566,7 +1567,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1566
1567
|
}
|
|
1567
1568
|
function scanPrivateIdentifier(parser) {
|
|
1568
1569
|
if (!isIdentifierStart(advanceChar(parser)))
|
|
1569
|
-
report(parser,
|
|
1570
|
+
report(parser, 94);
|
|
1570
1571
|
return 131;
|
|
1571
1572
|
}
|
|
1572
1573
|
function scanIdentifierUnicodeEscape(parser) {
|
|
@@ -1584,7 +1585,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1584
1585
|
while (CharTypes[advanceChar(parser)] & 64) {
|
|
1585
1586
|
codePoint = (codePoint << 4) | toHex(parser.currentChar);
|
|
1586
1587
|
if (codePoint > 1114111)
|
|
1587
|
-
reportScannerError(begin, parser.line, parser.index + 1,
|
|
1588
|
+
reportScannerError(begin, parser.line, parser.index + 1, 102);
|
|
1588
1589
|
}
|
|
1589
1590
|
if (parser.currentChar !== 125) {
|
|
1590
1591
|
reportScannerError(begin, parser.line, parser.index - 1, 6);
|
|
@@ -1925,7 +1926,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
1925
1926
|
advanceChar(parser);
|
|
1926
1927
|
if ((state & 1 || isStartOfLine) && parser.currentChar === 62) {
|
|
1927
1928
|
if ((context & 256) === 0)
|
|
1928
|
-
report(parser,
|
|
1929
|
+
report(parser, 109);
|
|
1929
1930
|
advanceChar(parser);
|
|
1930
1931
|
state = skipSingleHTMLComment(parser, source, state, context, 3, startPos, startLine, startColumn);
|
|
1931
1932
|
startPos = parser.tokenPos;
|
|
@@ -4421,7 +4422,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4421
4422
|
case 'AssignmentExpression':
|
|
4422
4423
|
node.type = 'AssignmentPattern';
|
|
4423
4424
|
if (node.operator !== '=')
|
|
4424
|
-
report(state,
|
|
4425
|
+
report(state, 69);
|
|
4425
4426
|
delete node.operator;
|
|
4426
4427
|
reinterpretToPattern(state, node.left);
|
|
4427
4428
|
return;
|
|
@@ -4436,58 +4437,58 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4436
4437
|
function validateBindingIdentifier(parser, context, kind, t, skipEvalArgCheck) {
|
|
4437
4438
|
if (context & 1024) {
|
|
4438
4439
|
if ((t & 36864) === 36864) {
|
|
4439
|
-
report(parser,
|
|
4440
|
+
report(parser, 115);
|
|
4440
4441
|
}
|
|
4441
4442
|
if (!skipEvalArgCheck && (t & 537079808) === 537079808) {
|
|
4442
|
-
report(parser,
|
|
4443
|
+
report(parser, 116);
|
|
4443
4444
|
}
|
|
4444
4445
|
}
|
|
4445
4446
|
if ((t & 20480) === 20480) {
|
|
4446
|
-
report(parser,
|
|
4447
|
+
report(parser, 100);
|
|
4447
4448
|
}
|
|
4448
4449
|
if (kind & (8 | 16) && t === 241739) {
|
|
4449
|
-
report(parser,
|
|
4450
|
+
report(parser, 98);
|
|
4450
4451
|
}
|
|
4451
4452
|
if (context & (4194304 | 2048) && t === 209008) {
|
|
4452
|
-
report(parser,
|
|
4453
|
+
report(parser, 96);
|
|
4453
4454
|
}
|
|
4454
4455
|
if (context & (2097152 | 1024) && t === 241773) {
|
|
4455
|
-
report(parser,
|
|
4456
|
+
report(parser, 95, 'yield');
|
|
4456
4457
|
}
|
|
4457
4458
|
}
|
|
4458
4459
|
function validateFunctionName(parser, context, t) {
|
|
4459
4460
|
if (context & 1024) {
|
|
4460
4461
|
if ((t & 36864) === 36864) {
|
|
4461
|
-
report(parser,
|
|
4462
|
+
report(parser, 115);
|
|
4462
4463
|
}
|
|
4463
4464
|
if ((t & 537079808) === 537079808) {
|
|
4464
|
-
report(parser,
|
|
4465
|
+
report(parser, 116);
|
|
4465
4466
|
}
|
|
4466
4467
|
if (t === 122) {
|
|
4467
|
-
report(parser,
|
|
4468
|
+
report(parser, 93);
|
|
4468
4469
|
}
|
|
4469
4470
|
if (t === 121) {
|
|
4470
|
-
report(parser,
|
|
4471
|
+
report(parser, 93);
|
|
4471
4472
|
}
|
|
4472
4473
|
}
|
|
4473
4474
|
if ((t & 20480) === 20480) {
|
|
4474
|
-
report(parser,
|
|
4475
|
+
report(parser, 100);
|
|
4475
4476
|
}
|
|
4476
4477
|
if (context & (4194304 | 2048) && t === 209008) {
|
|
4477
|
-
report(parser,
|
|
4478
|
+
report(parser, 96);
|
|
4478
4479
|
}
|
|
4479
4480
|
if (context & (2097152 | 1024) && t === 241773) {
|
|
4480
|
-
report(parser,
|
|
4481
|
+
report(parser, 95, 'yield');
|
|
4481
4482
|
}
|
|
4482
4483
|
}
|
|
4483
4484
|
function isStrictReservedWord(parser, context, t) {
|
|
4484
4485
|
if (t === 209008) {
|
|
4485
4486
|
if (context & (4194304 | 2048))
|
|
4486
|
-
report(parser,
|
|
4487
|
+
report(parser, 96);
|
|
4487
4488
|
parser.destructible |= 128;
|
|
4488
4489
|
}
|
|
4489
4490
|
if (t === 241773 && context & 2097152)
|
|
4490
|
-
report(parser,
|
|
4491
|
+
report(parser, 95, 'yield');
|
|
4491
4492
|
return ((t & 20480) === 20480 ||
|
|
4492
4493
|
(t & 36864) === 36864 ||
|
|
4493
4494
|
t == 122);
|
|
@@ -4499,7 +4500,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4499
4500
|
while (labels) {
|
|
4500
4501
|
if (labels['$' + name]) {
|
|
4501
4502
|
if (isIterationStatement)
|
|
4502
|
-
report(parser,
|
|
4503
|
+
report(parser, 134);
|
|
4503
4504
|
return 1;
|
|
4504
4505
|
}
|
|
4505
4506
|
if (isIterationStatement && labels.loop)
|
|
@@ -4512,7 +4513,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4512
4513
|
let set = labels;
|
|
4513
4514
|
while (set) {
|
|
4514
4515
|
if (set['$' + name])
|
|
4515
|
-
report(parser,
|
|
4516
|
+
report(parser, 133, name);
|
|
4516
4517
|
set = set['$'];
|
|
4517
4518
|
}
|
|
4518
4519
|
labels['$' + name] = 1;
|
|
@@ -4593,27 +4594,27 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4593
4594
|
const value = scope['#' + name];
|
|
4594
4595
|
if (value && (value & 2) === 0) {
|
|
4595
4596
|
if (kind & 1) {
|
|
4596
|
-
scope.scopeError = recordScopeError(parser,
|
|
4597
|
+
scope.scopeError = recordScopeError(parser, 141, name);
|
|
4597
4598
|
}
|
|
4598
4599
|
else if (context & 256 &&
|
|
4599
4600
|
value & 64 &&
|
|
4600
4601
|
origin & 2) ;
|
|
4601
4602
|
else {
|
|
4602
|
-
report(parser,
|
|
4603
|
+
report(parser, 141, name);
|
|
4603
4604
|
}
|
|
4604
4605
|
}
|
|
4605
4606
|
if (scope.type & 128 &&
|
|
4606
4607
|
(scope.parent['#' + name] && (scope.parent['#' + name] & 2) === 0)) {
|
|
4607
|
-
report(parser,
|
|
4608
|
+
report(parser, 141, name);
|
|
4608
4609
|
}
|
|
4609
4610
|
if (scope.type & 1024 && value && (value & 2) === 0) {
|
|
4610
4611
|
if (kind & 1) {
|
|
4611
|
-
scope.scopeError = recordScopeError(parser,
|
|
4612
|
+
scope.scopeError = recordScopeError(parser, 141, name);
|
|
4612
4613
|
}
|
|
4613
4614
|
}
|
|
4614
4615
|
if (scope.type & 64) {
|
|
4615
4616
|
if (scope.parent['#' + name] & 768)
|
|
4616
|
-
report(parser,
|
|
4617
|
+
report(parser, 154, name);
|
|
4617
4618
|
}
|
|
4618
4619
|
scope['#' + name] = kind;
|
|
4619
4620
|
}
|
|
@@ -4627,19 +4628,19 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4627
4628
|
((kind & 128 && value & 68) ||
|
|
4628
4629
|
(value & 128 && kind & 68))) ;
|
|
4629
4630
|
else {
|
|
4630
|
-
report(parser,
|
|
4631
|
+
report(parser, 141, name);
|
|
4631
4632
|
}
|
|
4632
4633
|
}
|
|
4633
4634
|
if (currentScope === scope) {
|
|
4634
4635
|
if (value & 1 && kind & 1) {
|
|
4635
|
-
currentScope.scopeError = recordScopeError(parser,
|
|
4636
|
+
currentScope.scopeError = recordScopeError(parser, 141, name);
|
|
4636
4637
|
}
|
|
4637
4638
|
}
|
|
4638
4639
|
if (value & (512 | 256)) {
|
|
4639
4640
|
if ((value & 512) === 0 ||
|
|
4640
4641
|
(context & 256) === 0 ||
|
|
4641
4642
|
context & 1024) {
|
|
4642
|
-
report(parser,
|
|
4643
|
+
report(parser, 141, name);
|
|
4643
4644
|
}
|
|
4644
4645
|
}
|
|
4645
4646
|
currentScope['#' + name] = kind;
|
|
@@ -4649,7 +4650,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4649
4650
|
function declareUnboundVariable(parser, name) {
|
|
4650
4651
|
if (parser.exportedNames !== void 0 && name !== '') {
|
|
4651
4652
|
if (parser.exportedNames['#' + name]) {
|
|
4652
|
-
report(parser,
|
|
4653
|
+
report(parser, 142, name);
|
|
4653
4654
|
}
|
|
4654
4655
|
parser.exportedNames['#' + name] = 1;
|
|
4655
4656
|
}
|
|
@@ -4707,7 +4708,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4707
4708
|
function classifyIdentifier(parser, context, t, isArrow) {
|
|
4708
4709
|
if ((t & 537079808) === 537079808) {
|
|
4709
4710
|
if (context & 1024)
|
|
4710
|
-
report(parser,
|
|
4711
|
+
report(parser, 116);
|
|
4711
4712
|
if (isArrow)
|
|
4712
4713
|
parser.flags |= 512;
|
|
4713
4714
|
}
|
|
@@ -4800,7 +4801,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4800
4801
|
if (scope) {
|
|
4801
4802
|
for (const key in parser.exportedBindings) {
|
|
4802
4803
|
if (key[0] === '#' && !scope[key])
|
|
4803
|
-
report(parser,
|
|
4804
|
+
report(parser, 143, key.slice(1));
|
|
4804
4805
|
}
|
|
4805
4806
|
}
|
|
4806
4807
|
}
|
|
@@ -4870,7 +4871,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4870
4871
|
moduleItem = parseStatementListItem(parser, context, scope, 4, {});
|
|
4871
4872
|
}
|
|
4872
4873
|
if (parser.leadingDecorators.length) {
|
|
4873
|
-
report(parser,
|
|
4874
|
+
report(parser, 165);
|
|
4874
4875
|
}
|
|
4875
4876
|
return moduleItem;
|
|
4876
4877
|
}
|
|
@@ -4889,7 +4890,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4889
4890
|
case 241739:
|
|
4890
4891
|
return parseLetIdentOrVarDeclarationStatement(parser, context, scope, origin, start, line, column);
|
|
4891
4892
|
case 20566:
|
|
4892
|
-
report(parser,
|
|
4893
|
+
report(parser, 101, 'export');
|
|
4893
4894
|
case 86108:
|
|
4894
4895
|
nextToken(parser, context);
|
|
4895
4896
|
switch (parser.token) {
|
|
@@ -4898,7 +4899,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4898
4899
|
case 67108877:
|
|
4899
4900
|
return parseImportMetaDeclaration(parser, context, start, line, column);
|
|
4900
4901
|
default:
|
|
4901
|
-
report(parser,
|
|
4902
|
+
report(parser, 101, 'import');
|
|
4902
4903
|
}
|
|
4903
4904
|
case 209007:
|
|
4904
4905
|
return parseAsyncArrowOrAsyncFunctionDeclaration(parser, context, scope, origin, labels, 1, start, line, column);
|
|
@@ -4941,17 +4942,17 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4941
4942
|
case 209007:
|
|
4942
4943
|
return parseAsyncArrowOrAsyncFunctionDeclaration(parser, context, scope, origin, labels, 0, start, line, column);
|
|
4943
4944
|
case 20559:
|
|
4944
|
-
report(parser, 156);
|
|
4945
|
-
case 20568:
|
|
4946
4945
|
report(parser, 157);
|
|
4946
|
+
case 20568:
|
|
4947
|
+
report(parser, 158);
|
|
4947
4948
|
case 86106:
|
|
4948
4949
|
report(parser, context & 1024
|
|
4949
|
-
?
|
|
4950
|
+
? 74
|
|
4950
4951
|
: (context & 256) === 0
|
|
4951
|
-
?
|
|
4952
|
-
:
|
|
4952
|
+
? 76
|
|
4953
|
+
: 75);
|
|
4953
4954
|
case 86096:
|
|
4954
|
-
report(parser,
|
|
4955
|
+
report(parser, 77);
|
|
4955
4956
|
default:
|
|
4956
4957
|
return parseExpressionOrLabelledStatement(parser, context, scope, origin, labels, allowFuncDecl, start, line, column);
|
|
4957
4958
|
}
|
|
@@ -4963,9 +4964,9 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4963
4964
|
case 241739:
|
|
4964
4965
|
expr = parseIdentifier(parser, context, 0);
|
|
4965
4966
|
if (context & 1024)
|
|
4966
|
-
report(parser,
|
|
4967
|
+
report(parser, 83);
|
|
4967
4968
|
if (parser.token === 69271571)
|
|
4968
|
-
report(parser,
|
|
4969
|
+
report(parser, 82);
|
|
4969
4970
|
break;
|
|
4970
4971
|
default:
|
|
4971
4972
|
expr = parsePrimaryExpression(parser, context, 2, 0, 1, 0, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
|
|
@@ -4994,7 +4995,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
4994
4995
|
}
|
|
4995
4996
|
function parseReturnStatement(parser, context, start, line, column) {
|
|
4996
4997
|
if ((context & 32) === 0 && context & 8192)
|
|
4997
|
-
report(parser,
|
|
4998
|
+
report(parser, 90);
|
|
4998
4999
|
nextToken(parser, context | 32768);
|
|
4999
5000
|
const argument = parser.flags & 1 || parser.token & 1048576
|
|
5000
5001
|
? null
|
|
@@ -5038,7 +5039,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5038
5039
|
if (!asyncNewLine) {
|
|
5039
5040
|
if (parser.token === 86106) {
|
|
5040
5041
|
if (!allowFuncDecl)
|
|
5041
|
-
report(parser,
|
|
5042
|
+
report(parser, 120);
|
|
5042
5043
|
return parseFunctionDeclaration(parser, context, scope, origin, 1, 0, 1, start, line, column);
|
|
5043
5044
|
}
|
|
5044
5045
|
if ((parser.token & 143360) === 143360) {
|
|
@@ -5097,7 +5098,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5097
5098
|
function parseThrowStatement(parser, context, start, line, column) {
|
|
5098
5099
|
nextToken(parser, context | 32768);
|
|
5099
5100
|
if (parser.flags & 1)
|
|
5100
|
-
report(parser,
|
|
5101
|
+
report(parser, 88);
|
|
5101
5102
|
const argument = parseExpressions(parser, context, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
|
|
5102
5103
|
matchOrInsertSemicolon(parser, context | 32768);
|
|
5103
5104
|
return finishNode(parser, context, start, line, column, {
|
|
@@ -5151,7 +5152,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5151
5152
|
else {
|
|
5152
5153
|
consume(parser, context | 32768, 20563);
|
|
5153
5154
|
if (seenDefault)
|
|
5154
|
-
report(parser,
|
|
5155
|
+
report(parser, 87);
|
|
5155
5156
|
seenDefault = 1;
|
|
5156
5157
|
}
|
|
5157
5158
|
consume(parser, context | 32768, 21);
|
|
@@ -5192,14 +5193,14 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5192
5193
|
}
|
|
5193
5194
|
function parseContinueStatement(parser, context, labels, start, line, column) {
|
|
5194
5195
|
if ((context & 131072) === 0)
|
|
5195
|
-
report(parser,
|
|
5196
|
+
report(parser, 66);
|
|
5196
5197
|
nextToken(parser, context);
|
|
5197
5198
|
let label = null;
|
|
5198
5199
|
if ((parser.flags & 1) === 0 && parser.token & 143360) {
|
|
5199
5200
|
const { tokenValue } = parser;
|
|
5200
5201
|
label = parseIdentifier(parser, context | 32768, 0);
|
|
5201
5202
|
if (!isValidLabel(parser, labels, tokenValue, 1))
|
|
5202
|
-
report(parser,
|
|
5203
|
+
report(parser, 135, tokenValue);
|
|
5203
5204
|
}
|
|
5204
5205
|
matchOrInsertSemicolon(parser, context | 32768);
|
|
5205
5206
|
return finishNode(parser, context, start, line, column, {
|
|
@@ -5214,10 +5215,10 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5214
5215
|
const { tokenValue } = parser;
|
|
5215
5216
|
label = parseIdentifier(parser, context | 32768, 0);
|
|
5216
5217
|
if (!isValidLabel(parser, labels, tokenValue, 0))
|
|
5217
|
-
report(parser,
|
|
5218
|
+
report(parser, 135, tokenValue);
|
|
5218
5219
|
}
|
|
5219
5220
|
else if ((context & (4096 | 131072)) === 0) {
|
|
5220
|
-
report(parser,
|
|
5221
|
+
report(parser, 67);
|
|
5221
5222
|
}
|
|
5222
5223
|
matchOrInsertSemicolon(parser, context | 32768);
|
|
5223
5224
|
return finishNode(parser, context, start, line, column, {
|
|
@@ -5228,7 +5229,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5228
5229
|
function parseWithStatement(parser, context, scope, labels, start, line, column) {
|
|
5229
5230
|
nextToken(parser, context);
|
|
5230
5231
|
if (context & 1024)
|
|
5231
|
-
report(parser,
|
|
5232
|
+
report(parser, 89);
|
|
5232
5233
|
consume(parser, context | 32768, 67174411);
|
|
5233
5234
|
const object = parseExpressions(parser, context, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
|
|
5234
5235
|
consume(parser, context | 32768, 16);
|
|
@@ -5261,7 +5262,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5261
5262
|
finalizer = parseBlock(parser, context, finalizerScope, { $: labels }, parser.tokenPos, parser.linePos, parser.colPos);
|
|
5262
5263
|
}
|
|
5263
5264
|
if (!handler && !finalizer) {
|
|
5264
|
-
report(parser,
|
|
5265
|
+
report(parser, 86);
|
|
5265
5266
|
}
|
|
5266
5267
|
return finishNode(parser, context, start, line, column, {
|
|
5267
5268
|
type: 'TryStatement',
|
|
@@ -5280,10 +5281,10 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5280
5281
|
? 256
|
|
5281
5282
|
: 512, 0, parser.tokenPos, parser.linePos, parser.colPos);
|
|
5282
5283
|
if (parser.token === 18) {
|
|
5283
|
-
report(parser,
|
|
5284
|
+
report(parser, 84);
|
|
5284
5285
|
}
|
|
5285
5286
|
else if (parser.token === 1077936157) {
|
|
5286
|
-
report(parser,
|
|
5287
|
+
report(parser, 85);
|
|
5287
5288
|
}
|
|
5288
5289
|
consume(parser, context | 32768, 16);
|
|
5289
5290
|
if (scope)
|
|
@@ -5335,7 +5336,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5335
5336
|
}
|
|
5336
5337
|
parser.assignable = 1;
|
|
5337
5338
|
if (context & 1024)
|
|
5338
|
-
report(parser,
|
|
5339
|
+
report(parser, 83);
|
|
5339
5340
|
if (parser.token === 21) {
|
|
5340
5341
|
return parseLabelledStatement(parser, context, scope, origin, {}, tokenValue, expr, token, 0, start, line, column);
|
|
5341
5342
|
}
|
|
@@ -5383,7 +5384,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5383
5384
|
list.push(parseVariableDeclaration(parser, context, scope, kind, origin));
|
|
5384
5385
|
}
|
|
5385
5386
|
if (bindingCount > 1 && origin & 32 && parser.token & 262144) {
|
|
5386
|
-
report(parser,
|
|
5387
|
+
report(parser, 59, KeywordDescTable[parser.token & 255]);
|
|
5387
5388
|
}
|
|
5388
5389
|
return list;
|
|
5389
5390
|
}
|
|
@@ -5398,13 +5399,13 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5398
5399
|
if (parser.token === 274549 ||
|
|
5399
5400
|
(parser.token === 8738868 &&
|
|
5400
5401
|
(token & 2097152 || (kind & 4) === 0 || context & 1024))) {
|
|
5401
|
-
reportMessageAt(tokenPos, parser.line, parser.index - 3,
|
|
5402
|
+
reportMessageAt(tokenPos, parser.line, parser.index - 3, 58, parser.token === 274549 ? 'of' : 'in');
|
|
5402
5403
|
}
|
|
5403
5404
|
}
|
|
5404
5405
|
}
|
|
5405
5406
|
else if ((kind & 16 || (token & 2097152) > 0) &&
|
|
5406
5407
|
(parser.token & 262144) !== 262144) {
|
|
5407
|
-
report(parser,
|
|
5408
|
+
report(parser, 57, kind & 16 ? 'const' : 'destructuring');
|
|
5408
5409
|
}
|
|
5409
5410
|
return finishNode(parser, context, tokenPos, linePos, colPos, {
|
|
5410
5411
|
type: 'VariableDeclarator',
|
|
@@ -5432,7 +5433,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5432
5433
|
if (parser.token & (143360 | 2097152)) {
|
|
5433
5434
|
if (parser.token === 8738868) {
|
|
5434
5435
|
if (context & 1024)
|
|
5435
|
-
report(parser,
|
|
5436
|
+
report(parser, 65);
|
|
5436
5437
|
}
|
|
5437
5438
|
else {
|
|
5438
5439
|
init = finishNode(parser, context, tokenPos, linePos, colPos, {
|
|
@@ -5444,14 +5445,14 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5444
5445
|
parser.assignable = 1;
|
|
5445
5446
|
}
|
|
5446
5447
|
else if (context & 1024) {
|
|
5447
|
-
report(parser,
|
|
5448
|
+
report(parser, 65);
|
|
5448
5449
|
}
|
|
5449
5450
|
else {
|
|
5450
5451
|
isVarDecl = false;
|
|
5451
5452
|
parser.assignable = 1;
|
|
5452
5453
|
init = parseMemberOrUpdateExpression(parser, context, init, 0, 0, tokenPos, linePos, colPos);
|
|
5453
5454
|
if (parser.token === 274549)
|
|
5454
|
-
report(parser,
|
|
5455
|
+
report(parser, 112);
|
|
5455
5456
|
}
|
|
5456
5457
|
}
|
|
5457
5458
|
else {
|
|
@@ -5472,7 +5473,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5472
5473
|
}
|
|
5473
5474
|
else if (token === 1074790417) {
|
|
5474
5475
|
if (forAwait)
|
|
5475
|
-
report(parser,
|
|
5476
|
+
report(parser, 80);
|
|
5476
5477
|
}
|
|
5477
5478
|
else if ((token & 2097152) === 2097152) {
|
|
5478
5479
|
init =
|
|
@@ -5481,7 +5482,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5481
5482
|
: parseArrayExpressionOrPattern(parser, context, void 0, 1, 0, 0, 2, 32, tokenPos, linePos, colPos);
|
|
5482
5483
|
destructible = parser.destructible;
|
|
5483
5484
|
if (context & 256 && destructible & 64) {
|
|
5484
|
-
report(parser,
|
|
5485
|
+
report(parser, 61);
|
|
5485
5486
|
}
|
|
5486
5487
|
parser.assignable =
|
|
5487
5488
|
destructible & 16 ? 2 : 1;
|
|
@@ -5493,7 +5494,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5493
5494
|
if ((parser.token & 262144) === 262144) {
|
|
5494
5495
|
if (parser.token === 274549) {
|
|
5495
5496
|
if (parser.assignable & 2)
|
|
5496
|
-
report(parser,
|
|
5497
|
+
report(parser, 78, forAwait ? 'await' : 'of');
|
|
5497
5498
|
reinterpretToPattern(parser, init);
|
|
5498
5499
|
nextToken(parser, context | 32768);
|
|
5499
5500
|
right = parseExpression(parser, context, 1, 0, 0, parser.tokenPos, parser.linePos, parser.colPos);
|
|
@@ -5508,11 +5509,11 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5508
5509
|
});
|
|
5509
5510
|
}
|
|
5510
5511
|
if (parser.assignable & 2)
|
|
5511
|
-
report(parser,
|
|
5512
|
+
report(parser, 78, 'in');
|
|
5512
5513
|
reinterpretToPattern(parser, init);
|
|
5513
5514
|
nextToken(parser, context | 32768);
|
|
5514
5515
|
if (forAwait)
|
|
5515
|
-
report(parser,
|
|
5516
|
+
report(parser, 80);
|
|
5516
5517
|
right = parseExpressions(parser, context, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
|
|
5517
5518
|
consume(parser, context | 32768, 16);
|
|
5518
5519
|
const body = parseIterationStatementBody(parser, context, scope, labels);
|
|
@@ -5524,10 +5525,10 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5524
5525
|
});
|
|
5525
5526
|
}
|
|
5526
5527
|
if (forAwait)
|
|
5527
|
-
report(parser,
|
|
5528
|
+
report(parser, 80);
|
|
5528
5529
|
if (!isVarDecl) {
|
|
5529
5530
|
if (destructible & 8 && parser.token !== 1077936157) {
|
|
5530
|
-
report(parser,
|
|
5531
|
+
report(parser, 78, 'loop');
|
|
5531
5532
|
}
|
|
5532
5533
|
init = parseAssignmentExpression(parser, context | 134217728, 0, 0, tokenPos, linePos, colPos, init);
|
|
5533
5534
|
}
|
|
@@ -5551,9 +5552,9 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5551
5552
|
}
|
|
5552
5553
|
function parseRestrictedIdentifier(parser, context, scope) {
|
|
5553
5554
|
if (!isValidIdentifier(context, parser.token))
|
|
5554
|
-
report(parser, 114);
|
|
5555
|
-
if ((parser.token & 537079808) === 537079808)
|
|
5556
5555
|
report(parser, 115);
|
|
5556
|
+
if ((parser.token & 537079808) === 537079808)
|
|
5557
|
+
report(parser, 116);
|
|
5557
5558
|
if (scope)
|
|
5558
5559
|
addBlockName(parser, context, scope, parser.tokenValue, 8, 0);
|
|
5559
5560
|
return parseIdentifier(parser, context, 0);
|
|
@@ -5587,7 +5588,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5587
5588
|
parseImportSpecifierOrNamedImports(parser, context, scope, specifiers);
|
|
5588
5589
|
break;
|
|
5589
5590
|
default:
|
|
5590
|
-
report(parser,
|
|
5591
|
+
report(parser, 105);
|
|
5591
5592
|
}
|
|
5592
5593
|
}
|
|
5593
5594
|
}
|
|
@@ -5631,7 +5632,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5631
5632
|
function parseModuleSpecifier(parser, context) {
|
|
5632
5633
|
consumeOpt(parser, context, 12404);
|
|
5633
5634
|
if (parser.token !== 134283267)
|
|
5634
|
-
report(parser,
|
|
5635
|
+
report(parser, 103, 'Import');
|
|
5635
5636
|
return parseLiteral(parser, context);
|
|
5636
5637
|
}
|
|
5637
5638
|
function parseImportSpecifierOrNamedImports(parser, context, scope, specifiers) {
|
|
@@ -5642,7 +5643,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5642
5643
|
let local;
|
|
5643
5644
|
if (consumeOpt(parser, context, 77934)) {
|
|
5644
5645
|
if ((parser.token & 134217728) === 134217728 || parser.token === 18) {
|
|
5645
|
-
report(parser,
|
|
5646
|
+
report(parser, 104);
|
|
5646
5647
|
}
|
|
5647
5648
|
else {
|
|
5648
5649
|
validateBindingIdentifier(parser, context, 16, parser.token, 0);
|
|
@@ -5746,7 +5747,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5746
5747
|
}
|
|
5747
5748
|
consume(parser, context, 12404);
|
|
5748
5749
|
if (parser.token !== 134283267)
|
|
5749
|
-
report(parser,
|
|
5750
|
+
report(parser, 103, 'Export');
|
|
5750
5751
|
source = parseLiteral(parser, context);
|
|
5751
5752
|
matchOrInsertSemicolon(parser, context | 32768);
|
|
5752
5753
|
return finishNode(parser, context, start, line, column, {
|
|
@@ -5766,7 +5767,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5766
5767
|
if (parser.token === 77934) {
|
|
5767
5768
|
nextToken(parser, context);
|
|
5768
5769
|
if ((parser.token & 134217728) === 134217728) {
|
|
5769
|
-
report(parser,
|
|
5770
|
+
report(parser, 104);
|
|
5770
5771
|
}
|
|
5771
5772
|
if (scope) {
|
|
5772
5773
|
tmpExportedNames.push(parser.tokenValue);
|
|
@@ -5792,7 +5793,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5792
5793
|
consume(parser, context, 1074790415);
|
|
5793
5794
|
if (consumeOpt(parser, context, 12404)) {
|
|
5794
5795
|
if (parser.token !== 134283267)
|
|
5795
|
-
report(parser,
|
|
5796
|
+
report(parser, 103, 'Export');
|
|
5796
5797
|
source = parseLiteral(parser, context);
|
|
5797
5798
|
}
|
|
5798
5799
|
else if (scope) {
|
|
@@ -5941,7 +5942,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5941
5942
|
t = parser.token;
|
|
5942
5943
|
prec = t & 3840;
|
|
5943
5944
|
if ((t & 524288 && operator & 268435456) || (operator & 524288 && t & 268435456)) {
|
|
5944
|
-
report(parser,
|
|
5945
|
+
report(parser, 160);
|
|
5945
5946
|
}
|
|
5946
5947
|
if (prec + ((t === 8457273) << 8) - ((bit === t) << 12) <= minPrec)
|
|
5947
5948
|
break;
|
|
@@ -5967,10 +5968,10 @@ System.register('meriyah', [], (function (exports) {
|
|
|
5967
5968
|
report(parser, 31);
|
|
5968
5969
|
if (context & 1024 && unaryOperator === 16863278) {
|
|
5969
5970
|
if (arg.type === 'Identifier') {
|
|
5970
|
-
report(parser,
|
|
5971
|
+
report(parser, 118);
|
|
5971
5972
|
}
|
|
5972
5973
|
else if (isPropertyWithPrivateFieldKey(arg)) {
|
|
5973
|
-
report(parser,
|
|
5974
|
+
report(parser, 124);
|
|
5974
5975
|
}
|
|
5975
5976
|
}
|
|
5976
5977
|
parser.assignable = 2;
|
|
@@ -6001,7 +6002,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6001
6002
|
if (parser.token === 10) {
|
|
6002
6003
|
classifyIdentifier(parser, context, token, 1);
|
|
6003
6004
|
if (inNew)
|
|
6004
|
-
report(parser,
|
|
6005
|
+
report(parser, 49);
|
|
6005
6006
|
return parseArrowFromIdentifier(parser, context, parser.tokenValue, expr, inNew, canAssign, 0, start, line, column);
|
|
6006
6007
|
}
|
|
6007
6008
|
return expr;
|
|
@@ -6016,7 +6017,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6016
6017
|
if (!canAssign)
|
|
6017
6018
|
report(parser, 24);
|
|
6018
6019
|
if (parser.token === 22)
|
|
6019
|
-
report(parser,
|
|
6020
|
+
report(parser, 121);
|
|
6020
6021
|
let argument = null;
|
|
6021
6022
|
let delegate = false;
|
|
6022
6023
|
if ((parser.flags & 1) === 0) {
|
|
@@ -6033,7 +6034,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6033
6034
|
});
|
|
6034
6035
|
}
|
|
6035
6036
|
if (context & 1024)
|
|
6036
|
-
report(parser,
|
|
6037
|
+
report(parser, 95, 'yield');
|
|
6037
6038
|
return parseIdentifierOrArrow(parser, context, start, line, column);
|
|
6038
6039
|
}
|
|
6039
6040
|
function parseAwaitExpression(parser, context, inNew, inGroup, start, line, column) {
|
|
@@ -6056,7 +6057,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6056
6057
|
});
|
|
6057
6058
|
}
|
|
6058
6059
|
if (context & 2048)
|
|
6059
|
-
report(parser,
|
|
6060
|
+
report(parser, 96);
|
|
6060
6061
|
return parseIdentifierOrArrow(parser, context, start, line, column);
|
|
6061
6062
|
}
|
|
6062
6063
|
function parseFunctionBody(parser, context, scope, origin, firstRestricted, scopeError) {
|
|
@@ -6071,7 +6072,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6071
6072
|
if (isValidStrictMode(parser, index, tokenPos, tokenValue)) {
|
|
6072
6073
|
context |= 1024;
|
|
6073
6074
|
if (parser.flags & 128) {
|
|
6074
|
-
reportMessageAt(parser.index, parser.line, parser.tokenPos,
|
|
6075
|
+
reportMessageAt(parser.index, parser.line, parser.tokenPos, 64);
|
|
6075
6076
|
}
|
|
6076
6077
|
if (parser.flags & 64) {
|
|
6077
6078
|
reportMessageAt(parser.index, parser.line, parser.tokenPos, 8);
|
|
@@ -6082,16 +6083,16 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6082
6083
|
if (context & 1024) {
|
|
6083
6084
|
if (firstRestricted) {
|
|
6084
6085
|
if ((firstRestricted & 537079808) === 537079808) {
|
|
6085
|
-
report(parser,
|
|
6086
|
+
report(parser, 116);
|
|
6086
6087
|
}
|
|
6087
6088
|
if ((firstRestricted & 36864) === 36864) {
|
|
6088
6089
|
report(parser, 38);
|
|
6089
6090
|
}
|
|
6090
6091
|
}
|
|
6091
6092
|
if (parser.flags & 512)
|
|
6092
|
-
report(parser,
|
|
6093
|
+
report(parser, 116);
|
|
6093
6094
|
if (parser.flags & 256)
|
|
6094
|
-
report(parser,
|
|
6095
|
+
report(parser, 115);
|
|
6095
6096
|
}
|
|
6096
6097
|
if (context & 64 &&
|
|
6097
6098
|
scope &&
|
|
@@ -6121,7 +6122,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6121
6122
|
nextToken(parser, context);
|
|
6122
6123
|
switch (parser.token) {
|
|
6123
6124
|
case 67108991:
|
|
6124
|
-
report(parser,
|
|
6125
|
+
report(parser, 162);
|
|
6125
6126
|
case 67174411: {
|
|
6126
6127
|
if ((context & 524288) === 0)
|
|
6127
6128
|
report(parser, 26);
|
|
@@ -6150,7 +6151,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6150
6151
|
}
|
|
6151
6152
|
function parseUpdateExpression(parser, context, expr, start, line, column) {
|
|
6152
6153
|
if (parser.assignable & 2)
|
|
6153
|
-
report(parser,
|
|
6154
|
+
report(parser, 53);
|
|
6154
6155
|
const { token } = parser;
|
|
6155
6156
|
nextToken(parser, context);
|
|
6156
6157
|
parser.assignable = 2;
|
|
@@ -6233,7 +6234,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6233
6234
|
}
|
|
6234
6235
|
default:
|
|
6235
6236
|
if ((parser.flags & 2048) === 2048) {
|
|
6236
|
-
report(parser,
|
|
6237
|
+
report(parser, 161);
|
|
6237
6238
|
}
|
|
6238
6239
|
parser.assignable = 2;
|
|
6239
6240
|
expr = finishNode(parser, context, start, line, column, {
|
|
@@ -6290,7 +6291,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6290
6291
|
}
|
|
6291
6292
|
else {
|
|
6292
6293
|
if ((parser.token & (143360 | 4096)) === 0)
|
|
6293
|
-
report(parser,
|
|
6294
|
+
report(parser, 155);
|
|
6294
6295
|
const property = parseIdentifier(parser, context, 0);
|
|
6295
6296
|
parser.assignable = 2;
|
|
6296
6297
|
node = finishNode(parser, context, start, line, column, {
|
|
@@ -6308,7 +6309,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6308
6309
|
}
|
|
6309
6310
|
function parsePropertyOrPrivatePropertyName(parser, context) {
|
|
6310
6311
|
if ((parser.token & (143360 | 4096)) === 0 && parser.token !== 131) {
|
|
6311
|
-
report(parser,
|
|
6312
|
+
report(parser, 155);
|
|
6312
6313
|
}
|
|
6313
6314
|
return context & 1 && parser.token === 131
|
|
6314
6315
|
? parsePrivateIdentifier(parser, context, parser.tokenPos, parser.linePos, parser.colPos)
|
|
@@ -6316,14 +6317,14 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6316
6317
|
}
|
|
6317
6318
|
function parseUpdateExpressionPrefixed(parser, context, inNew, isLHS, start, line, column) {
|
|
6318
6319
|
if (inNew)
|
|
6319
|
-
report(parser,
|
|
6320
|
+
report(parser, 54);
|
|
6320
6321
|
if (!isLHS)
|
|
6321
6322
|
report(parser, 0);
|
|
6322
6323
|
const { token } = parser;
|
|
6323
6324
|
nextToken(parser, context | 32768);
|
|
6324
6325
|
const arg = parseLeftHandSideExpression(parser, context, 0, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
|
|
6325
6326
|
if (parser.assignable & 2) {
|
|
6326
|
-
report(parser,
|
|
6327
|
+
report(parser, 53);
|
|
6327
6328
|
}
|
|
6328
6329
|
parser.assignable = 2;
|
|
6329
6330
|
return finishNode(parser, context, start, line, column, {
|
|
@@ -6352,12 +6353,12 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6352
6353
|
return parseArrowFromIdentifier(parser, context, tokenValue, expr, inNew, canAssign, 0, start, line, column);
|
|
6353
6354
|
}
|
|
6354
6355
|
if (context & 16384 && token === 537079928)
|
|
6355
|
-
report(parser,
|
|
6356
|
+
report(parser, 127);
|
|
6356
6357
|
if (token === 241739) {
|
|
6357
6358
|
if (context & 1024)
|
|
6358
|
-
report(parser,
|
|
6359
|
+
report(parser, 110);
|
|
6359
6360
|
if (kind & (8 | 16))
|
|
6360
|
-
report(parser,
|
|
6361
|
+
report(parser, 98);
|
|
6361
6362
|
}
|
|
6362
6363
|
parser.assignable =
|
|
6363
6364
|
context & 1024 && (token & 537079808) === 537079808
|
|
@@ -6428,14 +6429,14 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6428
6429
|
return parseImportMetaExpression(parser, context, expr, start, line, column);
|
|
6429
6430
|
}
|
|
6430
6431
|
if (inNew)
|
|
6431
|
-
report(parser,
|
|
6432
|
+
report(parser, 138);
|
|
6432
6433
|
expr = parseImportExpression(parser, context, inGroup, start, line, column);
|
|
6433
6434
|
parser.assignable = 2;
|
|
6434
6435
|
return parseMemberOrUpdateExpression(parser, context, expr, inGroup, 0, start, line, column);
|
|
6435
6436
|
}
|
|
6436
6437
|
function parseImportMetaExpression(parser, context, meta, start, line, column) {
|
|
6437
6438
|
if ((context & 2048) === 0)
|
|
6438
|
-
report(parser,
|
|
6439
|
+
report(parser, 164);
|
|
6439
6440
|
nextToken(parser, context);
|
|
6440
6441
|
if (parser.token !== 143495 && parser.tokenValue !== 'meta')
|
|
6441
6442
|
report(parser, 28, KeywordDescTable[parser.token & 255]);
|
|
@@ -6449,7 +6450,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6449
6450
|
function parseImportExpression(parser, context, inGroup, start, line, column) {
|
|
6450
6451
|
consume(parser, context | 32768, 67174411);
|
|
6451
6452
|
if (parser.token === 14)
|
|
6452
|
-
report(parser,
|
|
6453
|
+
report(parser, 139);
|
|
6453
6454
|
const source = parseExpression(parser, context, 1, 0, inGroup, parser.tokenPos, parser.linePos, parser.colPos);
|
|
6454
6455
|
consume(parser, context, 16);
|
|
6455
6456
|
return finishNode(parser, context, start, line, column, {
|
|
@@ -6494,14 +6495,14 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6494
6495
|
];
|
|
6495
6496
|
const expressions = [parseExpressions(parser, context, 0, 1, parser.tokenPos, parser.linePos, parser.colPos)];
|
|
6496
6497
|
if (parser.token !== 1074790415)
|
|
6497
|
-
report(parser,
|
|
6498
|
+
report(parser, 81);
|
|
6498
6499
|
while ((parser.token = scanTemplateTail(parser, context)) !== 67174409) {
|
|
6499
6500
|
const { tokenValue, tokenRaw, tokenPos, linePos, colPos } = parser;
|
|
6500
6501
|
consume(parser, context | 32768, 67174408);
|
|
6501
6502
|
quasis.push(parseTemplateElement(parser, context, tokenValue, tokenRaw, tokenPos, linePos, colPos, false));
|
|
6502
6503
|
expressions.push(parseExpressions(parser, context, 0, 1, parser.tokenPos, parser.linePos, parser.colPos));
|
|
6503
6504
|
if (parser.token !== 1074790415)
|
|
6504
|
-
report(parser,
|
|
6505
|
+
report(parser, 81);
|
|
6505
6506
|
}
|
|
6506
6507
|
{
|
|
6507
6508
|
const { tokenValue, tokenRaw, tokenPos, linePos, colPos } = parser;
|
|
@@ -6717,10 +6718,10 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6717
6718
|
function parseArrayLiteral(parser, context, skipInitializer, inGroup, start, line, column) {
|
|
6718
6719
|
const expr = parseArrayExpressionOrPattern(parser, context, void 0, skipInitializer, inGroup, 0, 2, 0, start, line, column);
|
|
6719
6720
|
if (context & 256 && parser.destructible & 64) {
|
|
6720
|
-
report(parser,
|
|
6721
|
+
report(parser, 61);
|
|
6721
6722
|
}
|
|
6722
6723
|
if (parser.destructible & 8) {
|
|
6723
|
-
report(parser,
|
|
6724
|
+
report(parser, 60);
|
|
6724
6725
|
}
|
|
6725
6726
|
return expr;
|
|
6726
6727
|
}
|
|
@@ -6815,7 +6816,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6815
6816
|
}
|
|
6816
6817
|
}
|
|
6817
6818
|
else if (parser.destructible & 8) {
|
|
6818
|
-
report(parser,
|
|
6819
|
+
report(parser, 69);
|
|
6819
6820
|
}
|
|
6820
6821
|
else {
|
|
6821
6822
|
left = parseMemberOrUpdateExpression(parser, context, left, inGroup, 0, tokenPos, linePos, colPos);
|
|
@@ -6914,7 +6915,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6914
6915
|
argument = parseMemberOrUpdateExpression(parser, context, argument, inGroup, 0, tokenPos, linePos, colPos);
|
|
6915
6916
|
if (parser.token !== 18 && parser.token !== closingToken) {
|
|
6916
6917
|
if (parser.assignable & 2 && parser.token === 1077936157)
|
|
6917
|
-
report(parser,
|
|
6918
|
+
report(parser, 69);
|
|
6918
6919
|
destructible |= 16;
|
|
6919
6920
|
argument = parseAssignmentExpression(parser, context, inGroup, isPattern, tokenPos, linePos, colPos, argument);
|
|
6920
6921
|
}
|
|
@@ -6941,7 +6942,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6941
6942
|
token = parser.token;
|
|
6942
6943
|
if (token !== 1077936157 && token !== closingToken && token !== 18) {
|
|
6943
6944
|
if (parser.destructible & 8)
|
|
6944
|
-
report(parser,
|
|
6945
|
+
report(parser, 69);
|
|
6945
6946
|
argument = parseMemberOrUpdateExpression(parser, context, argument, inGroup, 0, tokenPos, linePos, colPos);
|
|
6946
6947
|
destructible |= parser.assignable & 2 ? 16 : 0;
|
|
6947
6948
|
if ((parser.token & 4194304) === 4194304) {
|
|
@@ -6991,7 +6992,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
6991
6992
|
}
|
|
6992
6993
|
parser.destructible = destructible;
|
|
6993
6994
|
if (parser.token !== closingToken && parser.token !== 18)
|
|
6994
|
-
report(parser,
|
|
6995
|
+
report(parser, 156);
|
|
6995
6996
|
return finishNode(parser, context, start, line, column, {
|
|
6996
6997
|
type: isPattern ? 'RestElement' : 'SpreadElement',
|
|
6997
6998
|
argument: argument
|
|
@@ -7052,10 +7053,10 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7052
7053
|
function parseObjectLiteral(parser, context, skipInitializer, inGroup, start, line, column) {
|
|
7053
7054
|
const expr = parseObjectLiteralOrPattern(parser, context, void 0, skipInitializer, inGroup, 0, 2, 0, start, line, column);
|
|
7054
7055
|
if (context & 256 && parser.destructible & 64) {
|
|
7055
|
-
report(parser,
|
|
7056
|
+
report(parser, 61);
|
|
7056
7057
|
}
|
|
7057
7058
|
if (parser.destructible & 8) {
|
|
7058
|
-
report(parser,
|
|
7059
|
+
report(parser, 60);
|
|
7059
7060
|
}
|
|
7060
7061
|
return expr;
|
|
7061
7062
|
}
|
|
@@ -7172,7 +7173,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7172
7173
|
destructible |= 16;
|
|
7173
7174
|
}
|
|
7174
7175
|
else if (parser.destructible & 8) {
|
|
7175
|
-
report(parser,
|
|
7176
|
+
report(parser, 69);
|
|
7176
7177
|
}
|
|
7177
7178
|
else {
|
|
7178
7179
|
value = parseMemberOrUpdateExpression(parser, context, value, inGroup, 0, tokenPos, linePos, colPos);
|
|
@@ -7232,10 +7233,10 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7232
7233
|
else if (parser.token & (143360 | 4096)) {
|
|
7233
7234
|
destructible |= 16;
|
|
7234
7235
|
if (token === 121)
|
|
7235
|
-
report(parser,
|
|
7236
|
+
report(parser, 93);
|
|
7236
7237
|
if (token === 209007) {
|
|
7237
7238
|
if (parser.flags & 1)
|
|
7238
|
-
report(parser,
|
|
7239
|
+
report(parser, 129);
|
|
7239
7240
|
state |= 16;
|
|
7240
7241
|
}
|
|
7241
7242
|
key = parseIdentifier(parser, context, 0);
|
|
@@ -7254,11 +7255,14 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7254
7255
|
}
|
|
7255
7256
|
else if (parser.token === 8457014) {
|
|
7256
7257
|
destructible |= 16;
|
|
7257
|
-
if (token === 12402
|
|
7258
|
+
if (token === 12402) {
|
|
7258
7259
|
report(parser, 40);
|
|
7259
7260
|
}
|
|
7261
|
+
else if (token === 12403) {
|
|
7262
|
+
report(parser, 41);
|
|
7263
|
+
}
|
|
7260
7264
|
else if (token === 143483) {
|
|
7261
|
-
report(parser,
|
|
7265
|
+
report(parser, 93);
|
|
7262
7266
|
}
|
|
7263
7267
|
nextToken(parser, context);
|
|
7264
7268
|
state |=
|
|
@@ -7293,7 +7297,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7293
7297
|
value = parseMethodDefinition(parser, context, state, inGroup, parser.tokenPos, parser.linePos, parser.colPos);
|
|
7294
7298
|
}
|
|
7295
7299
|
else {
|
|
7296
|
-
report(parser,
|
|
7300
|
+
report(parser, 130);
|
|
7297
7301
|
}
|
|
7298
7302
|
}
|
|
7299
7303
|
else if ((parser.token & 134217728) === 134217728) {
|
|
@@ -7394,7 +7398,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7394
7398
|
destructible = parser.assignable | 16;
|
|
7395
7399
|
}
|
|
7396
7400
|
else {
|
|
7397
|
-
report(parser,
|
|
7401
|
+
report(parser, 131);
|
|
7398
7402
|
}
|
|
7399
7403
|
}
|
|
7400
7404
|
else if (parser.token === 69271571) {
|
|
@@ -7451,7 +7455,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7451
7455
|
destructible |= 16;
|
|
7452
7456
|
}
|
|
7453
7457
|
else if (destructible & 8) {
|
|
7454
|
-
report(parser,
|
|
7458
|
+
report(parser, 60);
|
|
7455
7459
|
}
|
|
7456
7460
|
else {
|
|
7457
7461
|
value = parseMemberOrUpdateExpression(parser, context, value, inGroup, 0, tokenPos, linePos, colPos);
|
|
@@ -7503,7 +7507,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7503
7507
|
destructible = 16;
|
|
7504
7508
|
}
|
|
7505
7509
|
else {
|
|
7506
|
-
report(parser,
|
|
7510
|
+
report(parser, 42);
|
|
7507
7511
|
}
|
|
7508
7512
|
}
|
|
7509
7513
|
else if (token === 8457014) {
|
|
@@ -7519,10 +7523,10 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7519
7523
|
}
|
|
7520
7524
|
else {
|
|
7521
7525
|
reportMessageAt(index, line, index, token === 209007
|
|
7522
|
-
?
|
|
7526
|
+
? 44
|
|
7523
7527
|
: token === 12402 || parser.token === 12403
|
|
7524
|
-
?
|
|
7525
|
-
:
|
|
7528
|
+
? 43
|
|
7529
|
+
: 45, KeywordDescTable[token & 255]);
|
|
7526
7530
|
}
|
|
7527
7531
|
}
|
|
7528
7532
|
else if ((parser.token & 134217728) === 134217728) {
|
|
@@ -7538,7 +7542,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7538
7542
|
value = parseMethodDefinition(parser, context, state, inGroup, parser.tokenPos, parser.linePos, parser.colPos);
|
|
7539
7543
|
}
|
|
7540
7544
|
else {
|
|
7541
|
-
report(parser,
|
|
7545
|
+
report(parser, 123);
|
|
7542
7546
|
}
|
|
7543
7547
|
}
|
|
7544
7548
|
else {
|
|
@@ -7620,7 +7624,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7620
7624
|
}
|
|
7621
7625
|
isSimpleParameterList = 1;
|
|
7622
7626
|
if (parser.destructible & (32 | 16))
|
|
7623
|
-
report(parser,
|
|
7627
|
+
report(parser, 48);
|
|
7624
7628
|
}
|
|
7625
7629
|
if (parser.token === 1077936157) {
|
|
7626
7630
|
nextToken(parser, context | 32768);
|
|
@@ -7712,7 +7716,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7712
7716
|
parser.assignable = 2;
|
|
7713
7717
|
if (parser.token !== 16 && parser.token !== 18) {
|
|
7714
7718
|
if (destructible & 8)
|
|
7715
|
-
report(parser,
|
|
7719
|
+
report(parser, 119);
|
|
7716
7720
|
expr = parseMemberOrUpdateExpression(parser, context, expr, 0, 0, tokenPos, linePos, colPos);
|
|
7717
7721
|
destructible |= 16;
|
|
7718
7722
|
if (parser.token !== 16 && parser.token !== 18) {
|
|
@@ -7723,7 +7727,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7723
7727
|
else if (token === 14) {
|
|
7724
7728
|
expr = parseSpreadOrRestElement(parser, context, scope, 16, kind, origin, 0, 1, 0, tokenPos, linePos, colPos);
|
|
7725
7729
|
if (parser.destructible & 16)
|
|
7726
|
-
report(parser,
|
|
7730
|
+
report(parser, 72);
|
|
7727
7731
|
isSimpleParameterList = 1;
|
|
7728
7732
|
if (isSequence && (parser.token === 16 || parser.token === 18)) {
|
|
7729
7733
|
expressions.push(expr);
|
|
@@ -7780,7 +7784,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7780
7784
|
}
|
|
7781
7785
|
consume(parser, context, 16);
|
|
7782
7786
|
if (destructible & 16 && destructible & 8)
|
|
7783
|
-
report(parser,
|
|
7787
|
+
report(parser, 146);
|
|
7784
7788
|
destructible |=
|
|
7785
7789
|
parser.destructible & 256
|
|
7786
7790
|
? 256
|
|
@@ -7789,7 +7793,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7789
7793
|
: 0;
|
|
7790
7794
|
if (parser.token === 10) {
|
|
7791
7795
|
if (destructible & (32 | 16))
|
|
7792
|
-
report(parser,
|
|
7796
|
+
report(parser, 47);
|
|
7793
7797
|
if (context & (4194304 | 2048) && destructible & 128)
|
|
7794
7798
|
report(parser, 29);
|
|
7795
7799
|
if (context & (1024 | 2097152) && destructible & 256) {
|
|
@@ -7800,7 +7804,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7800
7804
|
return parseParenthesizedArrow(parser, context, scope, isSequence ? expressions : [expr], canAssign, 0, start, line, column);
|
|
7801
7805
|
}
|
|
7802
7806
|
else if (destructible & 8) {
|
|
7803
|
-
report(parser,
|
|
7807
|
+
report(parser, 140);
|
|
7804
7808
|
}
|
|
7805
7809
|
parser.destructible = ((parser.destructible | 256) ^ 256) | destructible;
|
|
7806
7810
|
return context & 128
|
|
@@ -7825,23 +7829,23 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7825
7829
|
}
|
|
7826
7830
|
function parseArrowFromIdentifier(parser, context, value, expr, inNew, canAssign, isAsync, start, line, column) {
|
|
7827
7831
|
if (!canAssign)
|
|
7828
|
-
report(parser,
|
|
7832
|
+
report(parser, 55);
|
|
7829
7833
|
if (inNew)
|
|
7830
|
-
report(parser,
|
|
7834
|
+
report(parser, 49);
|
|
7831
7835
|
parser.flags &= ~128;
|
|
7832
7836
|
const scope = context & 64 ? createArrowHeadParsingScope(parser, context, value) : void 0;
|
|
7833
7837
|
return parseArrowFunctionExpression(parser, context, scope, [expr], isAsync, start, line, column);
|
|
7834
7838
|
}
|
|
7835
7839
|
function parseParenthesizedArrow(parser, context, scope, params, canAssign, isAsync, start, line, column) {
|
|
7836
7840
|
if (!canAssign)
|
|
7837
|
-
report(parser,
|
|
7841
|
+
report(parser, 55);
|
|
7838
7842
|
for (let i = 0; i < params.length; ++i)
|
|
7839
7843
|
reinterpretToPattern(parser, params[i]);
|
|
7840
7844
|
return parseArrowFunctionExpression(parser, context, scope, params, isAsync, start, line, column);
|
|
7841
7845
|
}
|
|
7842
7846
|
function parseArrowFunctionExpression(parser, context, scope, params, isAsync, start, line, column) {
|
|
7843
7847
|
if (parser.flags & 1)
|
|
7844
|
-
report(parser,
|
|
7848
|
+
report(parser, 46);
|
|
7845
7849
|
consume(parser, context | 32768, 10);
|
|
7846
7850
|
context = ((context | 15728640) ^ 15728640) | (isAsync << 22);
|
|
7847
7851
|
const expression = parser.token !== 2162700;
|
|
@@ -7860,16 +7864,16 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7860
7864
|
switch (parser.token) {
|
|
7861
7865
|
case 69271571:
|
|
7862
7866
|
if ((parser.flags & 1) === 0) {
|
|
7863
|
-
report(parser,
|
|
7867
|
+
report(parser, 113);
|
|
7864
7868
|
}
|
|
7865
7869
|
break;
|
|
7866
7870
|
case 67108877:
|
|
7867
7871
|
case 67174409:
|
|
7868
7872
|
case 22:
|
|
7869
|
-
report(parser,
|
|
7873
|
+
report(parser, 114);
|
|
7870
7874
|
case 67174411:
|
|
7871
7875
|
if ((parser.flags & 1) === 0) {
|
|
7872
|
-
report(parser,
|
|
7876
|
+
report(parser, 113);
|
|
7873
7877
|
}
|
|
7874
7878
|
parser.flags |= 1024;
|
|
7875
7879
|
break;
|
|
@@ -7877,7 +7881,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7877
7881
|
if ((parser.token & 8454144) === 8454144 && (parser.flags & 1) === 0)
|
|
7878
7882
|
report(parser, 28, KeywordDescTable[parser.token & 255]);
|
|
7879
7883
|
if ((parser.token & 33619968) === 33619968)
|
|
7880
|
-
report(parser,
|
|
7884
|
+
report(parser, 122);
|
|
7881
7885
|
}
|
|
7882
7886
|
parser.assignable = 2;
|
|
7883
7887
|
return finishNode(parser, context, start, line, column, {
|
|
@@ -7925,7 +7929,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
7925
7929
|
}
|
|
7926
7930
|
isSimpleParameterList = 1;
|
|
7927
7931
|
if (parser.destructible & (32 | 16)) {
|
|
7928
|
-
report(parser,
|
|
7932
|
+
report(parser, 48);
|
|
7929
7933
|
}
|
|
7930
7934
|
}
|
|
7931
7935
|
if (parser.token === 1077936157) {
|
|
@@ -8001,16 +8005,16 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8001
8005
|
parser.assignable = 2;
|
|
8002
8006
|
return parseMetaProperty(parser, context, id, start, line, column);
|
|
8003
8007
|
}
|
|
8004
|
-
report(parser,
|
|
8008
|
+
report(parser, 92);
|
|
8005
8009
|
}
|
|
8006
8010
|
parser.assignable = 2;
|
|
8007
8011
|
if ((parser.token & 16842752) === 16842752) {
|
|
8008
|
-
report(parser,
|
|
8012
|
+
report(parser, 63, KeywordDescTable[parser.token & 255]);
|
|
8009
8013
|
}
|
|
8010
8014
|
const expr = parsePrimaryExpression(parser, context, 2, 1, 0, 0, inGroup, 1, tokenPos, linePos, colPos);
|
|
8011
8015
|
context = (context | 134217728) ^ 134217728;
|
|
8012
8016
|
if (parser.token === 67108991)
|
|
8013
|
-
report(parser,
|
|
8017
|
+
report(parser, 163);
|
|
8014
8018
|
const callee = parseMembeExpressionNoCall(parser, context, expr, inGroup, tokenPos, linePos, colPos);
|
|
8015
8019
|
parser.assignable = 2;
|
|
8016
8020
|
return finishNode(parser, context, start, line, column, {
|
|
@@ -8045,7 +8049,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8045
8049
|
if (consumeOpt(parser, context, 16)) {
|
|
8046
8050
|
if (parser.token === 10) {
|
|
8047
8051
|
if (flags & 1)
|
|
8048
|
-
report(parser,
|
|
8052
|
+
report(parser, 46);
|
|
8049
8053
|
return parseParenthesizedArrow(parser, context, scope, [], canAssign, 1, start, line, column);
|
|
8050
8054
|
}
|
|
8051
8055
|
return finishNode(parser, context, start, line, column, {
|
|
@@ -8101,7 +8105,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8101
8105
|
isSimpleParameterList = 1;
|
|
8102
8106
|
if (parser.token !== 16 && parser.token !== 18) {
|
|
8103
8107
|
if (destructible & 8)
|
|
8104
|
-
report(parser,
|
|
8108
|
+
report(parser, 119);
|
|
8105
8109
|
expr = parseMemberOrUpdateExpression(parser, context, expr, 0, 0, tokenPos, linePos, colPos);
|
|
8106
8110
|
destructible |= 16;
|
|
8107
8111
|
if ((parser.token & 8454144) === 8454144) {
|
|
@@ -8149,7 +8153,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8149
8153
|
if (destructible & (32 | 16))
|
|
8150
8154
|
report(parser, 25);
|
|
8151
8155
|
if (parser.flags & 1 || flags & 1)
|
|
8152
|
-
report(parser,
|
|
8156
|
+
report(parser, 46);
|
|
8153
8157
|
if (destructible & 128)
|
|
8154
8158
|
report(parser, 29);
|
|
8155
8159
|
if (context & (1024 | 2097152) && destructible & 256)
|
|
@@ -8159,7 +8163,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8159
8163
|
return parseParenthesizedArrow(parser, context, scope, params, canAssign, 1, start, line, column);
|
|
8160
8164
|
}
|
|
8161
8165
|
else if (destructible & 8) {
|
|
8162
|
-
report(parser,
|
|
8166
|
+
report(parser, 60);
|
|
8163
8167
|
}
|
|
8164
8168
|
parser.assignable = 2;
|
|
8165
8169
|
return finishNode(parser, context, start, line, column, {
|
|
@@ -8204,10 +8208,10 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8204
8208
|
const { tokenValue } = parser;
|
|
8205
8209
|
if (parser.token & 4096 && parser.token !== 20567) {
|
|
8206
8210
|
if (isStrictReservedWord(parser, context, parser.token)) {
|
|
8207
|
-
report(parser,
|
|
8211
|
+
report(parser, 115);
|
|
8208
8212
|
}
|
|
8209
8213
|
if ((parser.token & 537079808) === 537079808) {
|
|
8210
|
-
report(parser,
|
|
8214
|
+
report(parser, 116);
|
|
8211
8215
|
}
|
|
8212
8216
|
if (scope) {
|
|
8213
8217
|
addBlockName(parser, context, scope, tokenValue, 32, 0);
|
|
@@ -8260,9 +8264,9 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8260
8264
|
nextToken(parser, context);
|
|
8261
8265
|
if (parser.token & 4096 && parser.token !== 20567) {
|
|
8262
8266
|
if (isStrictReservedWord(parser, context, parser.token))
|
|
8263
|
-
report(parser, 114);
|
|
8264
|
-
if ((parser.token & 537079808) === 537079808) {
|
|
8265
8267
|
report(parser, 115);
|
|
8268
|
+
if ((parser.token & 537079808) === 537079808) {
|
|
8269
|
+
report(parser, 116);
|
|
8266
8270
|
}
|
|
8267
8271
|
id = parseIdentifier(parser, context, 0);
|
|
8268
8272
|
}
|
|
@@ -8321,13 +8325,13 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8321
8325
|
decorators = parseDecorators(parser, context);
|
|
8322
8326
|
length = decorators.length;
|
|
8323
8327
|
if (length > 0 && parser.tokenValue === 'constructor') {
|
|
8324
|
-
report(parser,
|
|
8328
|
+
report(parser, 107);
|
|
8325
8329
|
}
|
|
8326
8330
|
if (parser.token === 1074790415)
|
|
8327
|
-
report(parser,
|
|
8331
|
+
report(parser, 106);
|
|
8328
8332
|
if (consumeOpt(parser, context, 1074790417)) {
|
|
8329
8333
|
if (length > 0)
|
|
8330
|
-
report(parser,
|
|
8334
|
+
report(parser, 117);
|
|
8331
8335
|
continue;
|
|
8332
8336
|
}
|
|
8333
8337
|
body.push(parseClassElementList(parser, context, scope, inheritedContext, kind, decorators, 0, inGroup, parser.tokenPos, parser.linePos, parser.colPos));
|
|
@@ -8424,20 +8428,20 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8424
8428
|
key = parsePrivateIdentifier(parser, context, tokenPos, linePos, colPos);
|
|
8425
8429
|
}
|
|
8426
8430
|
else
|
|
8427
|
-
report(parser,
|
|
8431
|
+
report(parser, 132);
|
|
8428
8432
|
}
|
|
8429
8433
|
if ((kind & 2) === 0) {
|
|
8430
8434
|
if (parser.tokenValue === 'constructor') {
|
|
8431
8435
|
if ((parser.token & 1073741824) === 1073741824) {
|
|
8432
|
-
report(parser,
|
|
8436
|
+
report(parser, 126);
|
|
8433
8437
|
}
|
|
8434
8438
|
else if ((kind & 32) === 0 && parser.token === 67174411) {
|
|
8435
8439
|
if (kind & (768 | 16 | 128 | 8)) {
|
|
8436
|
-
report(parser,
|
|
8440
|
+
report(parser, 51, 'accessor');
|
|
8437
8441
|
}
|
|
8438
8442
|
else if ((context & 524288) === 0) {
|
|
8439
8443
|
if (parser.flags & 32)
|
|
8440
|
-
report(parser,
|
|
8444
|
+
report(parser, 52);
|
|
8441
8445
|
else
|
|
8442
8446
|
parser.flags |= 32;
|
|
8443
8447
|
}
|
|
@@ -8447,7 +8451,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8447
8451
|
else if ((kind & 4096) === 0 &&
|
|
8448
8452
|
kind & (32 | 768 | 8 | 16) &&
|
|
8449
8453
|
parser.tokenValue === 'prototype') {
|
|
8450
|
-
report(parser,
|
|
8454
|
+
report(parser, 50);
|
|
8451
8455
|
}
|
|
8452
8456
|
}
|
|
8453
8457
|
if (context & 1 && parser.token !== 67174411) {
|
|
@@ -8489,7 +8493,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8489
8493
|
nextToken(parser, context);
|
|
8490
8494
|
const { tokenValue } = parser;
|
|
8491
8495
|
if (tokenValue === 'constructor')
|
|
8492
|
-
report(parser,
|
|
8496
|
+
report(parser, 125);
|
|
8493
8497
|
nextToken(parser, context);
|
|
8494
8498
|
return finishNode(parser, context, start, line, column, {
|
|
8495
8499
|
type: 'PrivateIdentifier',
|
|
@@ -8504,7 +8508,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8504
8508
|
nextToken(parser, context | 32768);
|
|
8505
8509
|
const { tokenPos, linePos, colPos } = parser;
|
|
8506
8510
|
if (parser.token === 537079928)
|
|
8507
|
-
report(parser,
|
|
8511
|
+
report(parser, 116);
|
|
8508
8512
|
value = parsePrimaryExpression(parser, context | 16384, 2, 0, 1, 0, 0, 1, tokenPos, linePos, colPos);
|
|
8509
8513
|
if ((parser.token & 1073741824) !== 1073741824) {
|
|
8510
8514
|
value = parseMemberOrUpdateExpression(parser, context | 16384, value, 0, 0, tokenPos, linePos, colPos);
|
|
@@ -8532,33 +8536,33 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8532
8536
|
? parseArrayExpressionOrPattern(parser, context, scope, 1, 0, 1, type, origin, start, line, column)
|
|
8533
8537
|
: parseObjectLiteralOrPattern(parser, context, scope, 1, 0, 1, type, origin, start, line, column);
|
|
8534
8538
|
if (parser.destructible & 16)
|
|
8535
|
-
report(parser,
|
|
8539
|
+
report(parser, 48);
|
|
8536
8540
|
if (parser.destructible & 32)
|
|
8537
|
-
report(parser,
|
|
8541
|
+
report(parser, 48);
|
|
8538
8542
|
return left;
|
|
8539
8543
|
}
|
|
8540
8544
|
function parseAndClassifyIdentifier(parser, context, scope, kind, origin, start, line, column) {
|
|
8541
8545
|
const { tokenValue, token } = parser;
|
|
8542
8546
|
if (context & 1024) {
|
|
8543
8547
|
if ((token & 537079808) === 537079808) {
|
|
8544
|
-
report(parser,
|
|
8548
|
+
report(parser, 116);
|
|
8545
8549
|
}
|
|
8546
8550
|
else if ((token & 36864) === 36864) {
|
|
8547
|
-
report(parser,
|
|
8551
|
+
report(parser, 115);
|
|
8548
8552
|
}
|
|
8549
8553
|
}
|
|
8550
8554
|
if ((token & 20480) === 20480) {
|
|
8551
|
-
report(parser,
|
|
8555
|
+
report(parser, 100);
|
|
8552
8556
|
}
|
|
8553
8557
|
if (context & (2048 | 2097152) && token === 241773) {
|
|
8554
8558
|
report(parser, 30);
|
|
8555
8559
|
}
|
|
8556
8560
|
if (token === 241739) {
|
|
8557
8561
|
if (kind & (8 | 16))
|
|
8558
|
-
report(parser,
|
|
8562
|
+
report(parser, 98);
|
|
8559
8563
|
}
|
|
8560
8564
|
if (context & (4194304 | 2048) && token === 209008) {
|
|
8561
|
-
report(parser,
|
|
8565
|
+
report(parser, 96);
|
|
8562
8566
|
}
|
|
8563
8567
|
nextToken(parser, context);
|
|
8564
8568
|
if (scope)
|
|
@@ -8586,7 +8590,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8586
8590
|
closingElement = parseJSXClosingElement(parser, context, inJSXChild, parser.tokenPos, parser.linePos, parser.colPos);
|
|
8587
8591
|
const close = isEqualTagName(closingElement.name);
|
|
8588
8592
|
if (isEqualTagName(openingElement.name) !== close)
|
|
8589
|
-
report(parser,
|
|
8593
|
+
report(parser, 150, close);
|
|
8590
8594
|
}
|
|
8591
8595
|
return finishNode(parser, context, start, line, column, {
|
|
8592
8596
|
type: 'JSXElement',
|
|
@@ -8742,7 +8746,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8742
8746
|
value = parseJSXExpressionContainer(parser, context, 1, 1, tokenPos, linePos, colPos);
|
|
8743
8747
|
break;
|
|
8744
8748
|
default:
|
|
8745
|
-
report(parser,
|
|
8749
|
+
report(parser, 149);
|
|
8746
8750
|
}
|
|
8747
8751
|
}
|
|
8748
8752
|
return finishNode(parser, context, start, line, column, {
|
|
@@ -8768,7 +8772,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8768
8772
|
let expression = null;
|
|
8769
8773
|
if (parser.token === 1074790415) {
|
|
8770
8774
|
if (isAttr)
|
|
8771
|
-
report(parser,
|
|
8775
|
+
report(parser, 152);
|
|
8772
8776
|
expression = parseJSXEmptyExpression(parser, context, parser.startPos, parser.startLine, parser.startColumn);
|
|
8773
8777
|
}
|
|
8774
8778
|
else {
|
|
@@ -8816,7 +8820,7 @@ System.register('meriyah', [], (function (exports) {
|
|
|
8816
8820
|
});
|
|
8817
8821
|
exports('ESTree', estree);
|
|
8818
8822
|
|
|
8819
|
-
var version$1 = "4.3.
|
|
8823
|
+
var version$1 = "4.3.3";
|
|
8820
8824
|
|
|
8821
8825
|
const version = exports('version', version$1);
|
|
8822
8826
|
function parseScript(source, options) {
|