// |reftest| shell-option(--enable-upsert) skip-if(!WeakMap.prototype.getOrInsert) // Copyright (C) 2015 the V8 project authors. All rights reserved. // Copyright (C) 2025 Jonas Haukenes. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: proposal-upsert description: WeakMap.prototype.getOrInsert property descriptor info: | WeakMap.prototype.getOrInsert ( key, value )
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
---*/
assertEq( typeof WeakMap.prototype.getOrInsert, 'function', 'typeof WeakMap.prototype.getOrInsert is "function"'
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.