blob: bd1a389a643bed424b292742a315dae4f3b85a63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// 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.
---*/
var n = 0;
var locale = "th-u-nu-thai";
var options = {
minimumFractionDigits: 3
};
assert.sameValue([n].toLocaleString(locale, options), n.toLocaleString(locale, options));
reportCompare(0, 0);
|