add reject-immed test

This commit is contained in:
chicoxyzzy 2019-11-27 17:30:12 +03:00 committed by Rick Waldron
parent adcd162c10
commit afe3f0bb50
1 changed files with 15 additions and 0 deletions

View File

@ -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);