| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b0acf55 commit c1f3e13
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,13 @@ | |||
| 1 | + ## 8.8.2 (2023-01-23) | ||
| 2 | + | ||
| 3 | + ### Bug fixes | ||
| 4 | + | ||
| 5 | + Fix a bug that caused `allowHashBang` to be set to false when not provided, even with `ecmaVersion >= 14`. | ||
| 6 | + | ||
| 7 | + Fix an exception when passing no option object to `parse` or `new Parser`. | ||
| 8 | + | ||
| 9 | + Fix incorrect parse error on `if (0) let\n[astral identifier char]`. | ||
| 10 | + | ||
| 1 | 11 | ## 8.8.1 (2022-10-24) | |
| 2 | 12 | ||
| 3 | 13 | ### Bug fixes | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ declare namespace acorn { | |||
| 11 | 11 | [Symbol.iterator](): Iterator<Token> | |
| 12 | 12 | } | |
| 13 | 13 | ||
| 14 | - type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 'latest' | ||
| 14 | + type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 'latest' | ||
| 15 | 15 | ||
| 16 | 16 | interface Options { | |
| 17 | 17 | ecmaVersion: ecmaVersion | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,8 +4,7 @@ var path = require('path'); | |||
| 4 | 4 | var fs = require('fs'); | |
| 5 | 5 | var acorn = require('./acorn.js'); | |
| 6 | 6 | ||
| 7 | - function _interopNamespace(e) { | ||
| 8 | - if (e && e.__esModule) return e; | ||
| 7 | + function _interopNamespaceDefault(e) { | ||
| 9 | 8 | var n = Object.create(null); | |
| 10 | 9 | if (e) { | |
| 11 | 10 | Object.keys(e).forEach(function (k) { | |
@@ -18,11 +17,11 @@ function _interopNamespace(e) { | |||
| 18 | 17 | } | |
| 19 | 18 | }); | |
| 20 | 19 | } | |
| 21 | - n["default"] = e; | ||
| 20 | + n.default = e; | ||
| 22 | 21 | return Object.freeze(n); | |
| 23 | 22 | } | |
| 24 | 23 | ||
| 25 | - var acorn__namespace = /*#__PURE__*/_interopNamespace(acorn); | ||
| 24 | + var acorn__namespace = /*#__PURE__*/_interopNamespaceDefault(acorn); | ||
| 26 | 25 | ||
| 27 | 26 | var inputFilePaths = [], forceFileName = false, fileMode = false, silent = false, compact = false, tokenize = false; | |
| 28 | 27 | var options = {}; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ | |||
| 16 | 16 | ], | |
| 17 | 17 | "./package.json": "./package.json" | |
| 18 | 18 | }, | |
| 19 | - "version": "8.8.1", | ||
| 19 | + "version": "8.8.2", | ||
| 20 | 20 | "engines": { | |
| 21 | 21 | "node": ">=0.4.0" | |
| 22 | 22 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,5 +2,5 @@ | |||
| 2 | 2 | // Refer to tools/update-acorn.sh | |
| 3 | 3 | #ifndef SRC_ACORN_VERSION_H_ | |
| 4 | 4 | #define SRC_ACORN_VERSION_H_ | |
| 5 | - #define ACORN_VERSION "8.8.1" | ||
| 5 | + #define ACORN_VERSION "8.8.2" | ||
| 6 | 6 | #endif // SRC_ACORN_VERSION_H_ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments