Debian Codegraph @

js/src/tests/non262/WeakMap/getOrInsert/name.js

raw
1 // |reftest| shell-option(--enable-upsert) skip-if(!WeakMap.prototype.getOrInsert)
2 // Copyright (C) 2015 the V8 project authors. All rights reserved.
3 // Copyright (C) 2025 Jonas Haukenes. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5 /*---
6 esid: proposal-upsert
7 description: WeakMap.prototype.getOrInsert.name descriptor
8 info: |
9 WeakMap.prototype.getOrInsert ( key, value )
10
11 17 ECMAScript Standard Built-in Objects
12
13 includes: [propertyHelper.js]
14 ---*/
15
16 assertDeepEq(Object.getOwnPropertyDescriptor(Map.prototype.getOrInsert, "name"), {
17 value: "getOrInsert",
18 writable: false,
19 enumerable: false,
20 configurable: true
21 });
22
23 reportCompare(0, 0);