diff --git a/test/built-ins/Promise/any/reject-immed.js b/test/built-ins/Promise/any/reject-immed.js index 18636e5e6e..81863b2bec 100644 --- a/test/built-ins/Promise/any/reject-immed.js +++ b/test/built-ins/Promise/any/reject-immed.js @@ -10,6 +10,7 @@ features: [Promise.any] ---*/ Promise.any([]) - .then(function() { - $DONE('The promise should not be fulfilled.'); - }, $DONE); + .then( + () => $DONE('The promise should be rejected, but was resolved'), + () => $DONE() + );