@@ -94,7 +94,7 @@ test.suite(
9494 }
9595 ) ;
9696
97- const declareGlobals = `declare var replReport: any, stdinReport: any, evalReport: any, restReport: any, global: any, __filename: any, __dirname: any, module: any, exports: any, fs: any ;` ;
97+ const declareGlobals = `declare var replReport: any, stdinReport: any, evalReport: any, restReport: any, global: any, __filename: any, __dirname: any, module: any, exports: any;` ;
9898 function setReportGlobal ( type : 'repl' | 'stdin' | 'eval' ) {
9999 return `
100100 ${ declareGlobals }
@@ -107,7 +107,7 @@ test.suite(
107107 modulePaths: typeof module !== 'undefined' && [...module.paths],
108108 exportsTest: typeof exports !== 'undefined' ? module.exports === exports : null,
109109 stackTest: new Error().stack!.split('\\n')[1],
110- moduleAccessorsTest: typeof fs === 'undefined' ? null : fs === require('fs'),
110+ moduleAccessorsTest: eval(' typeof fs') === 'undefined' ? null : eval('fs') === require('fs'),
111111 argv: [...process.argv]
112112 };
113113 ` . replace ( / \n / g, '' ) ;
@@ -203,7 +203,7 @@ test.suite(
203203 exportsTest : true ,
204204 // Note: vanilla node uses different name. See #1360
205205 stackTest : expect . stringContaining (
206- ` at ${ join ( TEST_DIR , '<repl>.ts' ) } :2 :`
206+ ` at ${ join ( TEST_DIR , '<repl>.ts' ) } :4 :`
207207 ) ,
208208 moduleAccessorsTest : true ,
209209 argv : [ tsNodeExe ] ,
@@ -356,7 +356,7 @@ test.suite(
356356 exportsTest : true ,
357357 // Note: vanilla node uses different name. See #1360
358358 stackTest : expect . stringContaining (
359- ` at ${ join ( TEST_DIR , '<repl>.ts' ) } :2 :`
359+ ` at ${ join ( TEST_DIR , '<repl>.ts' ) } :4 :`
360360 ) ,
361361 moduleAccessorsTest : true ,
362362 argv : [ tsNodeExe ] ,
0 commit comments