mirror of
https://github.com/tc39/test262.git
synced 2025-06-20 14:00:29 +02:00
missing fixup
This commit is contained in:
parent
292fd0c956
commit
d92d35605b
@ -28,12 +28,12 @@ if (typeof global.evaluated === 'undefined') {
|
|||||||
global.evaluated++;
|
global.evaluated++;
|
||||||
|
|
||||||
Promise.all([
|
Promise.all([
|
||||||
import('./eval-self-once.js'),
|
import('./eval-self-once-module.js'),
|
||||||
import('./eval-self-once.js'),
|
import('./eval-self-once-module.js'),
|
||||||
]).then(async () => {
|
]).then(async () => {
|
||||||
// Use await to serialize imports
|
// Use await to serialize imports
|
||||||
await import('./eval-self-once.js');
|
await import('./eval-self-once-module.js');
|
||||||
await import('./eval-self-once.js');
|
await import('./eval-self-once-module.js');
|
||||||
|
|
||||||
assert.sameValue(global.evaluated, 1, 'global property was defined and incremented only once');
|
assert.sameValue(global.evaluated, 1, 'global property was defined and incremented only once');
|
||||||
}).then($DONE, $DONE);
|
}).then($DONE, $DONE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user