From 55b22d8d9f02ce51965d8f66dab68dd0b7e826dc Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Thu, 12 Mar 2020 12:55:58 -0400 Subject: [PATCH] Promise.any: string iterable should not be rejected (adds error message for clarity) --- test/built-ins/Promise/any/iter-arg-is-string-resolve.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/built-ins/Promise/any/iter-arg-is-string-resolve.js b/test/built-ins/Promise/any/iter-arg-is-string-resolve.js index b7bfc2bb37..60bfe98837 100644 --- a/test/built-ins/Promise/any/iter-arg-is-string-resolve.js +++ b/test/built-ins/Promise/any/iter-arg-is-string-resolve.js @@ -27,8 +27,8 @@ flags: [async] try { Promise.any('').then(function(v) { assert.sameValue(v.length, 0); - }, function() { - $DONE('The promise should be resolved, but was rejected'); + }, function(error) { + $DONE(`The promise should be resolved, but was rejected with error: ${error.message}`); }).then($DONE, $DONE); } catch (error) { $DONE(`The promise should be resolved, but threw an exception: ${error.message}`);