Debian Codegraph @

js/src/tests/non262/Map/getOrInsertComputed/name.js

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