Welcome to mirror list, hosted at ThFree Co, Russian Federation.

regress-9787.js « intl « test « v8 « deps - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 576c0f7d649f293d598c04b929720ea0c3a1d9fe (plain)
1
2
3
4
5
6
7
8
9
10
// Copyright 2019 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.

// Flags: --harmony-intl-add-calendar-numbering-system

// ill-formed and valid calendar should throw RangeError.
assertThrows(
    'new Intl.DateTimeFormat("en", {calendar: "gregorian"})',
    RangeError);