missing fixup

This commit is contained in:
Leo Balter 2018-10-04 15:57:28 -04:00 committed by Rick Waldron
parent 292fd0c956
commit d92d35605b
1 changed files with 4 additions and 4 deletions

View File

@ -28,12 +28,12 @@ if (typeof global.evaluated === 'undefined') {
global.evaluated++;
Promise.all([
import('./eval-self-once.js'),
import('./eval-self-once.js'),
import('./eval-self-once-module.js'),
import('./eval-self-once-module.js'),
]).then(async () => {
// Use await to serialize imports
await import('./eval-self-once.js');
await import('./eval-self-once.js');
await import('./eval-self-once-module.js');
await import('./eval-self-once-module.js');
assert.sameValue(global.evaluated, 1, 'global property was defined and incremented only once');
}).then($DONE, $DONE);