mirror of
https://github.com/nodejs/node.git
synced 2026-11-15 10:36:53 -05:00
test_runner: prefer Atomics primordials
PR-URL: https://github.com/nodejs/node/pull/58716 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: Jordan Harband <ljharb@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
This commit is contained in:
1 parent
462c74181d
commit
ef2e0848ba
2 files changed
+4
-10
No files matched your search
@@ -1,13 +1,9 @@
|
||||
'use strict';
|
||||
const {
|
||||
AtomicsNotify,
|
||||
AtomicsStore,
|
||||
JSONStringify,
|
||||
SafeMap,
|
||||
globalThis: {
|
||||
Atomics: {
|
||||
notify: AtomicsNotify,
|
||||
store: AtomicsStore,
|
||||
},
|
||||
},
|
||||
} = primordials;
|
||||
const {
|
||||
kBadExportsMessage,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user