@@ -12,6 +12,7 @@ const { NodeInstance } = require('../common/inspector-helper.js');
|
12 | 12 | |
13 | 13 | async function runTest() { |
14 | 14 | const main = fixtures.path('es-module-loaders', 'register-loader.mjs'); |
| 15 | +process.env.NODE_DEBUG = 'esm,async_loader_worker'; |
15 | 16 | const child = new NodeInstance(['--inspect-wait=0'], '', main); |
16 | 17 | |
17 | 18 | const session = await child.connectInspectorSession(); |
@@ -24,7 +25,11 @@ async function runTest() {
|
24 | 25 | ]); |
25 | 26 | await session.send({ method: 'NodeRuntime.disable' }); |
26 | 27 | await session.waitForDisconnect(); |
27 | | -assert.strictEqual((await child.expectShutdown()).exitCode, 0); |
| 28 | +const result = await child.expectShutdown(); |
| 29 | +assert.deepStrictEqual(result, { |
| 30 | +exitCode: 0, |
| 31 | +signal: null, |
| 32 | +}); |
28 | 33 | } |
29 | 34 | |
30 | 35 | runTest(); |