| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2e1732e commit 6f1d2df
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,11 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + | ||
| 3 | + const common = require('../common'); | ||
| 4 | + const assert = require('assert'); | ||
| 5 | + const { Worker } = require('worker_threads'); | ||
| 6 | + | ||
| 7 | + // Regression for https://github.com/nodejs/node/issues/43182. | ||
| 8 | + const w = new Worker(new URL('data:text/javascript,process.exit(1);await new Promise(()=>{ process.exit(2); })')); | ||
| 9 | + w.on('exit', common.mustCall((code) => { | ||
| 10 | + assert.strictEqual(code, 1); | ||
| 11 | + })); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments