@@ -6,7 +6,6 @@ const path = require("path");
6
6
const mkdirP = require ( "mkdirp" ) ;
7
7
const log = require ( "fancy-log" ) ;
8
8
const cmdLineOptions = require ( "./options" ) ;
9
- const { CancellationToken } = require ( "prex" ) ;
10
9
const { exec } = require ( "./utils" ) ;
11
10
const { findUpFile } = require ( "./findUpDir" ) ;
12
11
@@ -22,9 +21,8 @@ exports.localTest262Baseline = "internal/baselines/test262/local";
22
21
* @param {string } defaultReporter
23
22
* @param {boolean } runInParallel
24
23
* @param {boolean } watchMode
25
- * @param {import("prex").CancellationToken } [cancelToken]
26
24
*/
27
- async function runConsoleTests ( runJs , defaultReporter , runInParallel , watchMode , cancelToken = CancellationToken . none ) {
25
+ async function runConsoleTests ( runJs , defaultReporter , runInParallel , watchMode ) {
28
26
let testTimeout = cmdLineOptions . timeout ;
29
27
const tests = cmdLineOptions . tests ;
30
28
const inspect = cmdLineOptions . break || cmdLineOptions . inspect ;
@@ -38,7 +36,6 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
38
36
const shardId = + cmdLineOptions . shardId || undefined ;
39
37
if ( ! cmdLineOptions . dirty ) {
40
38
await cleanTestDirs ( ) ;
41
- cancelToken . throwIfCancellationRequested ( ) ;
42
39
}
43
40
44
41
if ( fs . existsSync ( testConfigFile ) ) {
@@ -121,9 +118,7 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
121
118
122
119
try {
123
120
setNodeEnvToDevelopment ( ) ;
124
- const { exitCode } = await exec ( process . execPath , args , {
125
- cancelToken,
126
- } ) ;
121
+ const { exitCode } = await exec ( process . execPath , args ) ;
127
122
if ( exitCode !== 0 ) {
128
123
errorStatus = exitCode ;
129
124
error = new Error ( `Process exited with status code ${ errorStatus } .` ) ;
@@ -132,8 +127,8 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
132
127
// finally, do a sanity check and build the compiler with the built version of itself
133
128
log . info ( "Starting sanity check build..." ) ;
134
129
// 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" ] ) ;
137
132
if ( exitCode !== 0 ) {
138
133
errorStatus = exitCode ;
139
134
error = new Error ( `Sanity check build process exited with status code ${ errorStatus } .` ) ;
0 commit comments