@@ -6,7 +6,6 @@ const path = require("path");
66const mkdirP = require ( "mkdirp" ) ;
77const log = require ( "fancy-log" ) ;
88const cmdLineOptions = require ( "./options" ) ;
9- const { CancellationToken } = require ( "prex" ) ;
109const { exec } = require ( "./utils" ) ;
1110const { findUpFile } = require ( "./findUpDir" ) ;
1211
@@ -22,9 +21,8 @@ exports.localTest262Baseline = "internal/baselines/test262/local";
2221 * @param {string } defaultReporter
2322 * @param {boolean } runInParallel
2423 * @param {boolean } watchMode
25- * @param {import("prex").CancellationToken } [cancelToken]
2624 */
27- async function runConsoleTests ( runJs , defaultReporter , runInParallel , watchMode , cancelToken = CancellationToken . none ) {
25+ async function runConsoleTests ( runJs , defaultReporter , runInParallel , watchMode ) {
2826 let testTimeout = cmdLineOptions . timeout ;
2927 const tests = cmdLineOptions . tests ;
3028 const inspect = cmdLineOptions . break || cmdLineOptions . inspect ;
@@ -38,7 +36,6 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
3836 const shardId = + cmdLineOptions . shardId || undefined ;
3937 if ( ! cmdLineOptions . dirty ) {
4038 await cleanTestDirs ( ) ;
41- cancelToken . throwIfCancellationRequested ( ) ;
4239 }
4340
4441 if ( fs . existsSync ( testConfigFile ) ) {
@@ -121,9 +118,7 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
121118
122119 try {
123120 setNodeEnvToDevelopment ( ) ;
124- const { exitCode } = await exec ( process . execPath , args , {
125- cancelToken,
126- } ) ;
121+ const { exitCode } = await exec ( process . execPath , args ) ;
127122 if ( exitCode !== 0 ) {
128123 errorStatus = exitCode ;
129124 error = new Error ( `Process exited with status code ${ errorStatus } .` ) ;
@@ -132,8 +127,8 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
132127 // finally, do a sanity check and build the compiler with the built version of itself
133128 log . info ( "Starting sanity check build..." ) ;
134129 // Cleanup everything except lint rules (we'll need those later and would rather not waste time rebuilding them)
135- await exec ( "gulp" , [ "clean-tsc" , "clean-services" , "clean-tsserver" , "clean-lssl" , "clean-tests" ] , { cancelToken } ) ;
136- const { exitCode } = await exec ( "gulp" , [ "local" , "--lkg=false" ] , { cancelToken } ) ;
130+ await exec ( "gulp" , [ "clean-tsc" , "clean-services" , "clean-tsserver" , "clean-lssl" , "clean-tests" ] ) ;
131+ const { exitCode } = await exec ( "gulp" , [ "local" , "--lkg=false" ] ) ;
137132 if ( exitCode !== 0 ) {
138133 errorStatus = exitCode ;
139134 error = new Error ( `Sanity check build process exited with status code ${ errorStatus } .` ) ;
0 commit comments