Skip to content

Commit ab64b6d

Browse files
committed
repl: add async and await as keywords
PR-URL: #15566 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent cff6e69 commit ab64b6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/repl.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,11 +1239,11 @@ function addStandardGlobals(completionGroups, filter) {
12391239
// they just get in the way.
12401240
if (filter) {
12411241
completionGroups.push([
1242-
'break', 'case', 'catch', 'const', 'continue', 'debugger', 'default',
1243-
'delete', 'do', 'else', 'export', 'false', 'finally', 'for', 'function',
1244-
'if', 'import', 'in', 'instanceof', 'let', 'new', 'null', 'return',
1245-
'switch', 'this', 'throw', 'true', 'try', 'typeof', 'undefined', 'var',
1246-
'void', 'while', 'with', 'yield'
1242+
'async', 'await', 'break', 'case', 'catch', 'const', 'continue',
1243+
'debugger', 'default', 'delete', 'do', 'else', 'export', 'false',
1244+
'finally', 'for', 'function', 'if', 'import', 'in', 'instanceof', 'let',
1245+
'new', 'null', 'return', 'switch', 'this', 'throw', 'true', 'try',
1246+
'typeof', 'undefined', 'var', 'void', 'while', 'with', 'yield'
12471247
]);
12481248
}
12491249
}

0 commit comments

Comments
 (0)