add esid to array/prototype/toLocaleString tests

This commit is contained in:
deathbearbrown 2017-06-30 14:22:19 -07:00 committed by Rick Waldron
parent 7c3675494a
commit 4ef011ffcf
6 changed files with 8 additions and 2 deletions

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.tolocalestring
info: >
The elements of the array are converted to strings using their
toLocaleString methods, and these strings are then concatenated, separated

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.tolocalestring
info: "[[Get]] from not an inherited property"
es5id: 15.4.4.3_A3_T1
description: "[[Prototype]] of Array instance is Array.prototype"
@ -14,6 +15,6 @@ Array.prototype[1] = obj;
var x = [obj];
x.length = 2;
x.toLocaleString();
if (n !== 2) {
$ERROR('#1: var n = 0; var obj = {toLocaleString: function() {n++}}; Array.prototype[1] = obj; x = [obj]; x.length = 2; x.toLocaleString(); n === 2. Actual: ' + (n));
if (n !== 2) {
$ERROR('#1: var n = 0; var obj = {toLocaleString: function() {n++}}; Array.prototype[1] = obj; x = [obj]; x.length = 2; x.toLocaleString(); n === 2. Actual: ' + (n));
}

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.tolocalestring
info: The toLocaleString property of Array can't be used as constructor
es5id: 15.4.4.3_A4.7
description: >

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.tolocalestring
es6id: 22.1.3.26
description: >
Array.prototype.toLocaleString.name is "toLocaleString".

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.tolocalestring
description: Array.prototype.toLocaleString called with primitive element
info: >
22.1.3.26 Array.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] )

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.tolocalestring
description: Array.prototype.toLocaleString called with primitive element in getter
info: >
22.1.3.26 Array.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] )