@@ -39,13 +39,13 @@ const debug = util.debuglog('repl');
39
39
const parentModule = module ;
40
40
const replMap = new WeakMap ( ) ;
41
41
42
- const GLOBAL_OBJECT_PROPERTIES = [ 'NaN' , 'Infinity' , 'undefined' ,
43
- 'eval ' , 'parseInt ' , 'parseFloat ' , 'isNaN ' , 'isFinite ' , 'decodeURI ' ,
44
- 'decodeURIComponent ' , 'encodeURI ' , 'encodeURIComponent ' ,
45
- 'Object' , 'Function' , 'Array' , 'String' , 'Boolean' , 'Number ',
46
- 'Date' , 'RegExp' , 'Error' , 'EvalError' , 'RangeError' ,
47
- 'ReferenceError' , 'SyntaxError' , 'TypeError' , 'URIError' ,
48
- 'Math' , 'JSON' ] ;
42
+ const GLOBAL_OBJECT_PROPERTIES = [
43
+ 'NaN ' , 'Infinity ' , 'undefined ' , 'eval ' , 'parseInt ' , 'parseFloat' , 'isNaN ',
44
+ 'isFinite ' , 'decodeURI ' , 'decodeURIComponent' , 'encodeURI ',
45
+ 'encodeURIComponent' , ' Object', 'Function' , 'Array' , 'String' , 'Boolean' ,
46
+ 'Number' , ' Date', 'RegExp' , 'Error' , 'EvalError' , 'RangeError' ,
47
+ 'ReferenceError' , 'SyntaxError' , 'TypeError' , 'URIError' , 'Math' , 'JSON'
48
+ ] ;
49
49
const GLOBAL_OBJECT_PROPERTY_MAP = { } ;
50
50
GLOBAL_OBJECT_PROPERTIES . forEach ( ( p ) => GLOBAL_OBJECT_PROPERTY_MAP [ p ] = p ) ;
51
51
@@ -1215,12 +1215,13 @@ function addStandardGlobals(completionGroups, filter) {
1215
1215
// Common keywords. Exclude for completion on the empty string, b/c
1216
1216
// they just get in the way.
1217
1217
if ( filter ) {
1218
- completionGroups . push ( [ 'break' , 'case' , 'catch' , 'const' ,
1219
- 'continue' , 'debugger' , 'default' , 'delete' , 'do' , 'else' ,
1220
- 'export' , 'false' , 'finally' , 'for' , 'function' , 'if' ,
1221
- 'import' , 'in' , 'instanceof' , 'let' , 'new' , 'null' , 'return' ,
1222
- 'switch' , 'this' , 'throw' , 'true' , 'try' , 'typeof' , 'undefined' ,
1223
- 'var' , 'void' , 'while' , 'with' , 'yield' ] ) ;
1218
+ completionGroups . push ( [
1219
+ 'break' , 'case' , 'catch' , 'const' , 'continue' , 'debugger' , 'default' ,
1220
+ 'delete' , 'do' , 'else' , 'export' , 'false' , 'finally' , 'for' , 'function' ,
1221
+ 'if' , 'import' , 'in' , 'instanceof' , 'let' , 'new' , 'null' , 'return' ,
1222
+ 'switch' , 'this' , 'throw' , 'true' , 'try' , 'typeof' , 'undefined' , 'var' ,
1223
+ 'void' , 'while' , 'with' , 'yield'
1224
+ ] ) ;
1224
1225
}
1225
1226
}
1226
1227
0 commit comments