From ab64b6d7992efb9c558719b6e7e63f280d73048b Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Sat, 23 Sep 2017 00:09:59 -0700 Subject: [PATCH] repl: add async and await as keywords PR-URL: https://github.com/nodejs/node/pull/15566 Reviewed-By: Stephen Belanger Reviewed-By: Ben Noordhuis --- lib/repl.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/repl.js b/lib/repl.js index f925a3d87f5867..7fa39577ba8206 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -1239,11 +1239,11 @@ function addStandardGlobals(completionGroups, filter) { // they just get in the way. if (filter) { completionGroups.push([ - 'break', 'case', 'catch', 'const', 'continue', 'debugger', 'default', - 'delete', 'do', 'else', 'export', 'false', 'finally', 'for', 'function', - 'if', 'import', 'in', 'instanceof', 'let', 'new', 'null', 'return', - 'switch', 'this', 'throw', 'true', 'try', 'typeof', 'undefined', 'var', - 'void', 'while', 'with', 'yield' + 'async', 'await', 'break', 'case', 'catch', 'const', 'continue', + 'debugger', 'default', 'delete', 'do', 'else', 'export', 'false', + 'finally', 'for', 'function', 'if', 'import', 'in', 'instanceof', 'let', + 'new', 'null', 'return', 'switch', 'this', 'throw', 'true', 'try', + 'typeof', 'undefined', 'var', 'void', 'while', 'with', 'yield' ]); } }