Source code
Revision control
Copy as Markdown
Other Tools
// |reftest| shell-option(--enable-promise-allkeyed) skip-if(!Promise.allKeyed||!xulRuntime.shell) -- await-dictionary is not enabled unconditionally, requires shell-options
// Copyright (C) 2026 Danial Asaria (Bloomberg LP). All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-promise.allsettledkeyed
description: >
Promise.allSettledKeyed invoked on a non-constructor value
info: |
Promise.allSettledKeyed ( promises )
1. Let C be the this value.
2. Let promiseCapability be ? NewPromiseCapability(C).
NewPromiseCapability ( C )
1. If IsConstructor(C) is false, throw a TypeError exception.
features: [await-dictionary]
---*/
assert.throws(TypeError, function() {
Promise.allSettledKeyed.call(eval);
});
reportCompare(0, 0);