Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit da3c2ab

Browse filesBrowse files
aduh95danielleadams
authored andcommitted
tools,doc: enable ecmaVersion 2021 in acorn parser
PR-URL: #35994 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 9d26c4d commit da3c2ab
Copy full SHA for da3c2ab

File tree

Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed
Open diff view settings
Collapse file

‎tools/doc/apilinks.js‎

Copy file name to clipboardExpand all lines: tools/doc/apilinks.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ inputs.forEach((file) => {
5454

5555
// Parse source.
5656
const source = fs.readFileSync(file, 'utf8');
57-
const ast = acorn.parse(
58-
source,
59-
{ allowReturnOutsideFunction: true, ecmaVersion: 10, locations: true });
57+
const ast = acorn.parse(source, {
58+
allowReturnOutsideFunction: true,
59+
ecmaVersion: 'latest',
60+
locations: true,
61+
});
6062
const program = ast.body;
6163

6264
// Build link

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.