Skip to content

Commit c9e7b5e

Browse files
Renegade334RafaelGSS
authored andcommitted
test_runner: prefer Atomics primordials
PR-URL: #58716 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Pietro Marchini <[email protected]> Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: Ethan Arrowood <[email protected]>
1 parent 82b18ba commit c9e7b5e

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

lib/internal/test_runner/mock/loader.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
'use strict';
22
const {
3+
AtomicsNotify,
4+
AtomicsStore,
35
JSONStringify,
46
SafeMap,
5-
globalThis: {
6-
Atomics: {
7-
notify: AtomicsNotify,
8-
store: AtomicsStore,
9-
},
10-
},
117
} = primordials;
128
const {
139
kBadExportsMessage,

lib/internal/test_runner/mock/mock.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
const {
33
ArrayPrototypePush,
44
ArrayPrototypeSlice,
5+
AtomicsStore,
6+
AtomicsWait,
57
Error,
68
FunctionPrototypeBind,
79
FunctionPrototypeCall,
@@ -18,10 +20,6 @@ const {
1820
StringPrototypeSlice,
1921
StringPrototypeStartsWith,
2022
globalThis: {
21-
Atomics: {
22-
store: AtomicsStore,
23-
wait: AtomicsWait,
24-
},
2523
SharedArrayBuffer,
2624
},
2725
} = primordials;

0 commit comments

Comments
 (0)