blob: 133d6bb5d7bc5197e1fd09b8bfda24880300a25b (
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
|
// |reftest| shell-option(--enable-float16array)
// Copyright (C) 2018 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sup-array.prototype.tolocalestring
description: >
Ensure "toLocaleString" is called with locale and options on number elements.
includes: [testTypedArray.js]
features: [TypedArray]
---*/
var n = 0;
var locale = "th-u-nu-thai";
var options = {
minimumFractionDigits: 3
};
var expected = n.toLocaleString(locale, options);
testWithTypedArrayConstructors(function(TA) {
assert.sameValue(new TA([n]).toLocaleString(locale, options), expected);
});
reportCompare(0, 0);
|