Debian Codegraph @

js/src/tests/test262/intl402/DurationFormat/extensibility.js

raw
1 // |reftest| skip-if(!Intl.hasOwnProperty('DurationFormat')) -- Intl.DurationFormat is not enabled unconditionally
2 // Copyright 2022 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-Intl.DurationFormat
7 description: Intl.DurationFormat instance object extensibility
8 info: |
9 17 ECMAScript Standard Built-in Objects:
10
11 Unless specified otherwise, the [[Extensible]] internal slot
12 of a built-in object initially has the value true.
13
14 features: [Intl.DurationFormat]
15 ---*/
16
17 assert.sameValue(
18 Object.isExtensible(new Intl.DurationFormat()),
19 true,
20 "Object.isExtensible(new Intl.DurationFormat()) returns true"
21 );
22
23
24
25 reportCompare(0, 0);