| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 if (this.Intl) { | |
| 6 // Normalizes Kat{h,}mandu (chromium:487322) | |
| 7 df = new Intl.DateTimeFormat('en-US', {'timeZone': 'Asia/Katmandu'}) | |
| 8 assertEquals('Asia/Katmandu', df.resolvedOptions().timeZone); | |
| 9 | |
| 10 df = new Intl.DateTimeFormat('en-US', {'timeZone': 'Asia/Kathmandu'}) | |
| 11 assertEquals('Asia/Katmandu', df.resolvedOptions().timeZone); | |
| 12 | |
| 13 // Throws for unsupported time zones. | |
| 14 assertThrows(() => Intl.DateTimeFormat(undefined, {timeZone: 'Aurope/Paris'}))
; | |
| 15 } | |
| OLD | NEW |