Philip Chimento 27d7cdad4e Replace Temporal.Now.timeZone → Temporal.Now.timeZoneId
Now.timeZoneId() returns a string so that it can be used to construct
objects that have the builtin time zone behaviour.

Normative PR: https://github.com/tc39/proposal-temporal/pull/2482
2023-04-07 11:43:31 -07:00

19 lines
554 B
JavaScript

// Copyright (C) 2021 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-temporal.now.timezoneid
description: Temporal.Now.timeZoneId is extensible.
info: |
## 17 ECMAScript Standard Built-in Objects
Unless specified otherwise, the [[Extensible]] internal slot
of a built-in object initially has the value true.
features: [Temporal]
---*/
assert(
Object.isExtensible(Temporal.Now.timeZoneId),
'Object.isExtensible(Temporal.Now.timeZoneId) must return true'
);