blob: a8046db49944df5d0d2244046ce2e979ca406f9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright 2021 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-Intl.DisplayNames
description: Checks handling of non-object option arguments to the DisplayNames constructor.
info: |
Intl.DisplayNames ( locales, options )
features: [Intl.DisplayNames,BigInt]
---*/
const optionsArguments = [
null,
true,
false,
"test",
7,
Symbol(),
123456789n,
];
for (const options of optionsArguments) {
assert.throws(TypeError, function() { new Intl.DisplayNames([], options) })
}
reportCompare(0, 0);
|