| // Copyright 2020 the V8 project authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // Verify the order of resolvedOptions() |
| let df = new Intl.DateTimeFormat("en", { |
| fractionalSecondDigits: 2, |
| let resolvedOptionsKeys = Object.keys(df.resolvedOptions()).join(":"); |
| "locale:calendar:numberingSystem:timeZone:hourCycle:hour12:weekday:era:" + |
| "year:month:day:hour:minute:second:fractionalSecondDigits:timeZoneName", |
| // Verify the order of reading the options. |
| get fractionalSecondDigits() { |
| read.push("fractionalSecondDigits"); |
| read.push("timeZoneName"); |
| df = new Intl.DateTimeFormat("en", options); |
| "second:fractionalSecondDigits:second:fractionalSecondDigits:timeZoneName", |