@@ -40,12 +40,12 @@ const parentModule = module;
4040const replMap = new WeakMap ( ) ;
4141
4242const 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' ] ;
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' ] ;
4949const GLOBAL_OBJECT_PROPERTY_MAP = { } ;
5050GLOBAL_OBJECT_PROPERTIES . forEach ( ( p ) => GLOBAL_OBJECT_PROPERTY_MAP [ p ] = p ) ;
5151
@@ -783,7 +783,7 @@ ArrayStream.prototype.writable = true;
783783ArrayStream . prototype . resume = function ( ) { } ;
784784ArrayStream . prototype . write = function ( ) { } ;
785785
786- const requireRE = / \b r e q u i r e \s * \( [ ' " ] ( ( [ \w \. \ /- ] + \/ ) ? ( [ \w \. \ /- ] * ) ) / ;
786+ const requireRE = / \b r e q u i r e \s * \( [ ' " ] ( ( [ \w . / - ] + \/ ) ? ( [ \w . / - ] * ) ) / ;
787787const simpleExpressionRE =
788788 / ( ( [ a - z A - Z _ $ ] (?: \w | \$ ) * ) \. ) * ( [ a - z A - Z _ $ ] (?: \w | \$ ) * ) \. ? $ / ;
789789
@@ -1036,7 +1036,7 @@ function complete(line, callback) {
10361036 var newCompletionGroups = [ ] ;
10371037 for ( i = 0 ; i < completionGroups . length ; i ++ ) {
10381038 group = completionGroups [ i ] . filter ( function ( elem ) {
1039- return elem . indexOf ( filter ) == 0 ;
1039+ return elem . indexOf ( filter ) === 0 ;
10401040 } ) ;
10411041 if ( group . length ) {
10421042 newCompletionGroups . push ( group ) ;
@@ -1339,8 +1339,8 @@ function regexpEscape(s) {
13391339 * @return {String } The converted command.
13401340 */
13411341REPLServer . prototype . convertToContext = function ( cmd ) {
1342- const scopeVar = / ^ \s * v a r \s * ( [ _ \w \ $] + ) ( .* ) $ / m;
1343- const scopeFunc = / ^ \s * f u n c t i o n \s * ( [ _ \w \ $] + ) / ;
1342+ const scopeVar = / ^ \s * v a r \s * ( [ \w $ ] + ) ( .* ) $ / m;
1343+ const scopeFunc = / ^ \s * f u n c t i o n \s * ( [ \w $ ] + ) / ;
13441344 var matches ;
13451345
13461346 // Replaces: var foo = "bar"; with: self.context.foo = bar;
0 commit comments