// |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.allkeyed description: > Promise.allKeyed invoked on a non-constructor value info: | Promise.allKeyed ( 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.allKeyed.call(eval); }); reportCompare(0, 0);