@@ -5,7 +5,7 @@ const common = require('../common');
5
5
const { aborted } = require ( 'util' ) ;
6
6
const assert = require ( 'assert' ) ;
7
7
const { getEventListeners } = require ( 'events' ) ;
8
- const { spawn } = require ( 'child_process' ) ;
8
+ // const { spawn } = require('child_process'); // nodejs-mobile patch
9
9
10
10
{
11
11
// Test aborted works when provided a resource
@@ -47,13 +47,14 @@ const { spawn } = require('child_process');
47
47
) ) . then ( common . mustCall ( ) ) ;
48
48
}
49
49
50
- {
51
- const childProcess = spawn ( process . execPath , [ '--input-type=module' ] ) ;
52
- childProcess . on ( 'exit' , common . mustCall ( ( code ) => {
53
- assert . strictEqual ( code , 13 ) ;
54
- } ) ) ;
55
- childProcess . stdin . end ( `
56
- import { aborted } from 'node:util';
57
- await aborted(new AbortController().signal, {});
58
- ` ) ;
59
- }
50
+ // nodejs-mobile patch: child_process not supported
51
+ // {
52
+ // const childProcess = spawn(process.execPath, ['--input-type=module']);
53
+ // childProcess.on('exit', common.mustCall((code) => {
54
+ // assert.strictEqual(code, 13);
55
+ // }));
56
+ // childProcess.stdin.end(`
57
+ // import { aborted } from 'node:util';
58
+ // await aborted(new AbortController().signal, {});
59
+ // `);
60
+ // }
0 commit comments