meriyah 6.0.1 → 6.0.2
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 +9 -0
- package/README.md +3 -2
- package/dist/meriyah.cjs +8 -8
- package/dist/meriyah.min.mjs +1 -1
- package/dist/meriyah.mjs +8 -8
- package/dist/meriyah.umd.js +8 -8
- package/dist/meriyah.umd.min.js +1 -1
- package/dist/src/token.d.ts +3 -3
- package/dist/src/token.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [6.0.2](https://github.com/meriyah/meriyah/compare/v6.0.1...v6.0.2) (2024-10-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **parser:** all identifiers can be start of an expression ([7f800c5](https://github.com/meriyah/meriyah/commit/7f800c5fce86d71f80cb15d3a1ead5fc2d70e8ef)), closes [#342](https://github.com/meriyah/meriyah/issues/342)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [6.0.1](https://github.com/meriyah/meriyah/compare/v6.0.0...v6.0.1) (2024-09-16)
|
|
2
11
|
|
|
3
12
|
|
package/README.md
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
<br>
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
[Interactive Playground](https://meriyah.github.io/meriyah)
|
|
14
|
+
[Benchmark](https://meriyah.github.io/meriyah/performance)
|
|
14
15
|
|
|
15
16
|
## Features
|
|
16
17
|
|
|
@@ -117,7 +118,7 @@ The available options:
|
|
|
117
118
|
lexical: false;
|
|
118
119
|
|
|
119
120
|
// Adds a source attribute in every node’s loc object when the locations option is `true`
|
|
120
|
-
source:
|
|
121
|
+
source: undefined; // Set to source: 'source-file.js'
|
|
121
122
|
|
|
122
123
|
// Enable React JSX parsing
|
|
123
124
|
jsx: false;
|
package/dist/meriyah.cjs
CHANGED
|
@@ -1516,8 +1516,8 @@ const descKeywordTable = Object.create(null, {
|
|
|
1516
1516
|
eval: { value: 537079926 },
|
|
1517
1517
|
as: { value: 77932 },
|
|
1518
1518
|
arguments: { value: 537079927 },
|
|
1519
|
-
target: { value:
|
|
1520
|
-
meta: { value:
|
|
1519
|
+
target: { value: 209029 },
|
|
1520
|
+
meta: { value: 209030 },
|
|
1521
1521
|
accessor: { value: 12402 },
|
|
1522
1522
|
});
|
|
1523
1523
|
|
|
@@ -1596,7 +1596,7 @@ function scanIdentifierSlowCase(parser, context, hasEscape, isValidAsKeyword) {
|
|
|
1596
1596
|
return -2147483528;
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
|
-
return
|
|
1599
|
+
return 209018 | -2147483648;
|
|
1600
1600
|
}
|
|
1601
1601
|
if (context & 67108864 &&
|
|
1602
1602
|
(context & 2048) === 0 &&
|
|
@@ -1605,13 +1605,13 @@ function scanIdentifierSlowCase(parser, context, hasEscape, isValidAsKeyword) {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
if (token === 241771) {
|
|
1607
1607
|
return context & 67108864
|
|
1608
|
-
?
|
|
1608
|
+
? 209018 | -2147483648
|
|
1609
1609
|
: context & 262144
|
|
1610
1610
|
? -2147483528
|
|
1611
1611
|
: token | -2147483648;
|
|
1612
1612
|
}
|
|
1613
1613
|
if (token === 209005) {
|
|
1614
|
-
return
|
|
1614
|
+
return 209018 | -2147483648;
|
|
1615
1615
|
}
|
|
1616
1616
|
if ((token & 36864) === 36864) {
|
|
1617
1617
|
return token | 12288 | -2147483648;
|
|
@@ -6617,7 +6617,7 @@ function parseImportMetaExpression(parser, context, meta, start, line, column) {
|
|
|
6617
6617
|
report(parser, 169);
|
|
6618
6618
|
nextToken(parser, context);
|
|
6619
6619
|
const token = parser.getToken();
|
|
6620
|
-
if (token !==
|
|
6620
|
+
if (token !== 209030 && parser.tokenValue !== 'meta') {
|
|
6621
6621
|
report(parser, 174);
|
|
6622
6622
|
}
|
|
6623
6623
|
else if (token & -2147483648) {
|
|
@@ -8345,7 +8345,7 @@ function parseNewExpression(parser, context, privateScope, inGroup, start, line,
|
|
|
8345
8345
|
const id = parseIdentifier(parser, context | 8192);
|
|
8346
8346
|
const { tokenIndex, tokenLine, tokenColumn } = parser;
|
|
8347
8347
|
if (consumeOpt(parser, context, 67108877)) {
|
|
8348
|
-
if (context & 16777216 && parser.getToken() ===
|
|
8348
|
+
if (context & 16777216 && parser.getToken() === 209029) {
|
|
8349
8349
|
parser.assignable = 2;
|
|
8350
8350
|
return parseMetaProperty(parser, context, id, start, line, column);
|
|
8351
8351
|
}
|
|
@@ -9227,7 +9227,7 @@ var estree = /*#__PURE__*/Object.freeze({
|
|
|
9227
9227
|
__proto__: null
|
|
9228
9228
|
});
|
|
9229
9229
|
|
|
9230
|
-
var version = "6.0.
|
|
9230
|
+
var version = "6.0.2";
|
|
9231
9231
|
|
|
9232
9232
|
function parseScript(source, options) {
|
|
9233
9233
|
return parseSource(source, options, 0);
|