aboutsummaryrefslogtreecommitdiff
path: root/test/code-cache/test-code-cache.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/code-cache/test-code-cache.js')
-rw-r--r--test/code-cache/test-code-cache.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/code-cache/test-code-cache.js b/test/code-cache/test-code-cache.js
index 367e72168a..54bd0b0e2a 100644
--- a/test/code-cache/test-code-cache.js
+++ b/test/code-cache/test-code-cache.js
@@ -5,15 +5,12 @@
// and the cache is used when built in modules are compiled.
// Otherwise, verifies that no cache is used when compiling builtins.
-require('../common');
+const { isMainThread } = require('../common');
const assert = require('assert');
const {
cachableBuiltins,
cannotUseCache
} = require('internal/bootstrap/cache');
-const {
- isMainThread
-} = require('worker_threads');
const {
internalBinding