ChakraCore icon indicating copy to clipboard operation
ChakraCore copied to clipboard

TypedArray : toLocaleString should use length from internal slot

Open akroshg opened this issue 10 years ago • 0 comments

(function() {
    var v = new Int8Array(2);
    v[1] = 31;
    Object.defineProperty(v, 'length', {value : 4});
    var ret = v.toLocaleString()
    console.log(ret);
})();

toLocaleString should iterate over the length we got from internal slot of typed array instead of Get('length')

Expected 0.00, 31.00 Actual 0.00, 31.00, ,

akroshg avatar Nov 01 '16 21:11 akroshg