Skip to content

Commit 8a62818

Browse files
committed
Simplify test.
1 parent bdc8060 commit 8a62818

File tree

1 file changed

+4
-2
lines changed
  • graal-js/src/com.oracle.truffle.js.test/js/module

1 file changed

+4
-2
lines changed

graal-js/src/com.oracle.truffle.js.test/js/module/GR-43146.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ async function indirectEval() {
2626
async function dynamicFunction() {
2727
await (new Function("return import(importedUrl)"))();
2828
}
29-
[basic, directEval, indirectEval, dynamicFunction].reduce((p, f) => p.then(() => f().catch(err => {
29+
[basic, directEval, indirectEval, dynamicFunction].forEach((f) => {
30+
f().catch(err => {
3031
console.error(`${f.name}() => ${err}`);
3132
throw err;
32-
})), Promise.resolve());
33+
});
34+
});

0 commit comments

Comments
 (0)