promise.js (491B)
1 // Copyright (C) 2023 Peter Klecha. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 description: Promise.withResolvers return value has a property called "promise" which is a Promise 6 esid: sec-promise.withresolvers 7 features: [promise-with-resolvers] 8 ---*/ 9 10 11 var instance = Promise.withResolvers(); 12 13 assert.sameValue(instance.promise.constructor, Promise); 14 assert.sameValue(instance.promise instanceof Promise, true); 15 16 17 reportCompare(0, 0);