meriyah 4.3.8 → 4.3.9
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 +4 -0
- package/dist/meriyah.amd.js +2 -2
- package/dist/meriyah.amd.min.js +1 -1
- package/dist/meriyah.cjs +2 -2
- package/dist/meriyah.cjs.js +2 -2
- package/dist/meriyah.cjs.min.js +1 -1
- package/dist/meriyah.esm.js +2 -2
- package/dist/meriyah.esm.min.js +1 -1
- package/dist/meriyah.esm.min.mjs +1 -1
- package/dist/meriyah.esm.mjs +2 -2
- package/dist/meriyah.iife.js +2 -2
- package/dist/meriyah.iife.min.js +1 -1
- package/dist/meriyah.min.cjs +1 -1
- package/dist/meriyah.system.js +2 -2
- package/dist/meriyah.system.min.js +1 -1
- package/dist/meriyah.umd.cjs +2 -2
- package/dist/meriyah.umd.es5.js +2 -2
- package/dist/meriyah.umd.es5.min.js +1 -1
- package/dist/meriyah.umd.js +2 -2
- package/dist/meriyah.umd.min.cjs +1 -1
- package/dist/meriyah.umd.min.js +1 -1
- package/package.json +1 -1
- package/src/parser.ts +1 -1
package/package.json
CHANGED
package/src/parser.ts
CHANGED
|
@@ -1837,7 +1837,7 @@ export function parseDoWhileStatement(
|
|
|
1837
1837
|
// The previous token is ) and the inserted semicolon would then be parsed as the terminating semicolon of a do-while statement (13.7.2).
|
|
1838
1838
|
// This cannot be implemented in matchOrInsertSemicolon() because it doesn't know
|
|
1839
1839
|
// this RightRaren is the end of a do-while statement.
|
|
1840
|
-
consumeOpt(parser, context, Token.Semicolon);
|
|
1840
|
+
consumeOpt(parser, context | Context.AllowRegExp, Token.Semicolon);
|
|
1841
1841
|
return finishNode(parser, context, start, line, column, {
|
|
1842
1842
|
type: 'DoWhileStatement',
|
|
1843
1843
|
body,
|