From afe3f0bb50828e759933627fe57d85fb26499dca Mon Sep 17 00:00:00 2001 From: chicoxyzzy Date: Wed, 27 Nov 2019 17:30:12 +0300 Subject: [PATCH] add reject-immed test --- test/built-ins/Promise/any/reject-immed.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/built-ins/Promise/any/reject-immed.js diff --git a/test/built-ins/Promise/any/reject-immed.js b/test/built-ins/Promise/any/reject-immed.js new file mode 100644 index 0000000000..18636e5e6e --- /dev/null +++ b/test/built-ins/Promise/any/reject-immed.js @@ -0,0 +1,15 @@ +// Copyright (C) 2019 Sergey Rubanov. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Promise.any([]) rejects immediately +esid: sec-promise.any +flags: [async] +includes: [promiseHelper.js] +features: [Promise.any] +---*/ + +Promise.any([]) + .then(function() { + $DONE('The promise should not be fulfilled.'); + }, $DONE);