GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: increase coverage for worker · nodejs/node@eba2dc5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-worker-execargv-invalid.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-worker-execargv-invalid.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-worker-execargv-invalid.js
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,17 @@ const { Worker } = require('worker_threads');
3333
new Worker(__filename, { execArgv: ['--redirect-warnings'] });
3434
}, expectedErr);
3535
}
36+
37+
{
38+
const expectedErr = {
39+
code: 'ERR_WORKER_INVALID_EXEC_ARGV',
40+
name: 'Error'
41+
};
42+
assert.throws(() => {
43+
new Worker(__filename, {
44+
env: {
45+
NODE_OPTIONS: '--nonexistent-options'
46+
}
47+
});
48+
}, expectedErr);
49+
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.