mirror of
https://github.com/tc39/test262.git
synced 2025-12-09 14:59:43 +01:00
17 lines
400 B
JavaScript
17 lines
400 B
JavaScript
// 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(
|
|
() => $DONE('The promise should be rejected, but was resolved'),
|
|
() => $DONE()
|
|
);
|