Debian Codegraph @

js/src/tests/test262/built-ins/Temporal/Now/timeZoneId/prop-desc.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: The "timeZoneId" property of Temporal.Now
8 info: |
9 Section 17: Every other data property described in clauses 18 through 26
10 and in Annex B.2 has the attributes { [[Writable]]: true,
11 [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified.
12 includes: [propertyHelper.js]
13 features: [Temporal]
14 ---*/
15
16 assert.sameValue(typeof Temporal.Now.timeZoneId, "function", "typeof is function");
17
18 verifyProperty(Temporal.Now, 'timeZoneId', {
19 enumerable: false,
20 writable: true,
21 configurable: true
22 });
23
24 reportCompare(0, 0);