// |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);