diff --git a/lib/internal/test_runner/mock/loader.js b/lib/internal/test_runner/mock/loader.js index 6739bded60ff44..ddde5599df509a 100644 --- a/lib/internal/test_runner/mock/loader.js +++ b/lib/internal/test_runner/mock/loader.js @@ -1,13 +1,9 @@ 'use strict'; const { + AtomicsNotify, + AtomicsStore, JSONStringify, SafeMap, - globalThis: { - Atomics: { - notify: AtomicsNotify, - store: AtomicsStore, - }, - }, } = primordials; const { kBadExportsMessage, diff --git a/lib/internal/test_runner/mock/mock.js b/lib/internal/test_runner/mock/mock.js index f0a0d9d9b59624..9dc358397aa1f9 100644 --- a/lib/internal/test_runner/mock/mock.js +++ b/lib/internal/test_runner/mock/mock.js @@ -2,6 +2,8 @@ const { ArrayPrototypePush, ArrayPrototypeSlice, + AtomicsStore, + AtomicsWait, Error, FunctionPrototypeBind, FunctionPrototypeCall, @@ -18,10 +20,6 @@ const { StringPrototypeSlice, StringPrototypeStartsWith, globalThis: { - Atomics: { - store: AtomicsStore, - wait: AtomicsWait, - }, SharedArrayBuffer, }, } = primordials;