Debian Codegraph @

js/src/tests/test262/built-ins/Temporal/Now/timeZoneId/extensible.js

raw
1 // |reftest| shell-option(--enable-temporal) skip-if(!this.hasOwnProperty('Temporal')||!xulRuntime.shell) -- Temporal is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2021 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-temporal.now.timezoneid
7 description: Temporal.Now.timeZoneId is extensible.
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 features: [Temporal]
14 ---*/
15
16 assert(
17 Object.isExtensible(Temporal.Now.timeZoneId),
18 'Object.isExtensible(Temporal.Now.timeZoneId) must return true'
19 );
20
21 reportCompare(0, 0);