blob: db9d45d23d949d0f64c5fbb99903d8ae93e1171d [file] [log] [blame]
// 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);
});