()
| 72 | test(false).then(common.mustCall()); |
| 73 | |
| 74 | function 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 | } |
| 90 | withPermissionOptionTest(); |
no test coverage detected
searching dependent graphs…