meriyah 6.0.0 → 6.0.1
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/dist/meriyah.cjs +3 -5
- package/dist/meriyah.min.mjs +1 -1
- package/dist/meriyah.mjs +3 -5
- package/dist/meriyah.umd.js +3 -5
- package/dist/meriyah.umd.min.js +1 -1
- package/dist/src/lexer/template.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/meriyah.mjs
CHANGED
|
@@ -1185,10 +1185,8 @@ function scanTemplate(parser, context) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
|
-
else {
|
|
1189
|
-
if (parser.index
|
|
1190
|
-
char === 13 &&
|
|
1191
|
-
parser.source.charCodeAt(parser.index) === 10) {
|
|
1188
|
+
else if (parser.index < parser.end) {
|
|
1189
|
+
if (char === 13 && parser.source.charCodeAt(parser.index) === 10) {
|
|
1192
1190
|
ret += String.fromCodePoint(char);
|
|
1193
1191
|
parser.currentChar = parser.source.charCodeAt(++parser.index);
|
|
1194
1192
|
}
|
|
@@ -9227,7 +9225,7 @@ var estree = /*#__PURE__*/Object.freeze({
|
|
|
9227
9225
|
__proto__: null
|
|
9228
9226
|
});
|
|
9229
9227
|
|
|
9230
|
-
var version = "6.0.
|
|
9228
|
+
var version = "6.0.1";
|
|
9231
9229
|
|
|
9232
9230
|
function parseScript(source, options) {
|
|
9233
9231
|
return parseSource(source, options, 0);
|
package/dist/meriyah.umd.js
CHANGED
|
@@ -1191,10 +1191,8 @@
|
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
|
-
else {
|
|
1195
|
-
if (parser.index
|
|
1196
|
-
char === 13 &&
|
|
1197
|
-
parser.source.charCodeAt(parser.index) === 10) {
|
|
1194
|
+
else if (parser.index < parser.end) {
|
|
1195
|
+
if (char === 13 && parser.source.charCodeAt(parser.index) === 10) {
|
|
1198
1196
|
ret += String.fromCodePoint(char);
|
|
1199
1197
|
parser.currentChar = parser.source.charCodeAt(++parser.index);
|
|
1200
1198
|
}
|
|
@@ -9233,7 +9231,7 @@
|
|
|
9233
9231
|
__proto__: null
|
|
9234
9232
|
});
|
|
9235
9233
|
|
|
9236
|
-
var version = "6.0.
|
|
9234
|
+
var version = "6.0.1";
|
|
9237
9235
|
|
|
9238
9236
|
function parseScript(source, options) {
|
|
9239
9237
|
return parseSource(source, options, 0);
|