MCPcopy Index your code
hub / github.com/nodejs/node / withPermissionOptionTest

Function withPermissionOptionTest

test/parallel/test-inspector-worker-target.js:74–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72test(false).then(common.mustCall());
73
74function withPermissionOptionTest() {
75 const permissionErrorThrow = common.mustCall();
76 const child = new NodeInstance(['--inspect-brk=0', '--experimental-worker-inspection', '--permission'],
77 '',
78 fixtures.path('inspect-worker/index.js'),
79 {
80 log: (_, msg) => {
81 if (msg.includes('Access to this API has been restricted')) {
82 permissionErrorThrow();
83 }
84 },
85 error: () => {},
86 }
87 );
88 child.connectInspectorSession();
89}
90withPermissionOptionTest();

Callers 1

Calls 3

includesMethod · 0.80
pathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…