diff options
Diffstat (limited to 'test/common/index.js')
-rw-r--r-- | test/common/index.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/common/index.js b/test/common/index.js index 5cc285c2cf..f0f849e6af 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -614,10 +614,6 @@ function skipIfInspectorDisabled() { if (process.config.variables.v8_enable_inspector === 0) { skip('V8 inspector is disabled'); } - if (!isMainThread) { - // TODO(addaleax): Fix me. - skip('V8 inspector is not available in Workers'); - } } function skipIf32Bits() { @@ -626,6 +622,12 @@ function skipIf32Bits() { } } +function skipIfWorker() { + if (!isMainThread) { + skip('This test only works on a main thread'); + } +} + function getArrayBufferViews(buf) { const { buffer, byteOffset, byteLength } = buf; @@ -744,6 +746,7 @@ module.exports = { skipIf32Bits, skipIfEslintMissing, skipIfInspectorDisabled, + skipIfWorker, get localhostIPv6() { return '::1'; }, |