mirror of https://github.com/tc39/test262.git
add esid to array/prototype/toLocaleString tests
This commit is contained in:
parent
7c3675494a
commit
4ef011ffcf
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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: >
|
||||
|
|
|
@ -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".
|
||||
|
|
|
@ -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 ] ] )
|
||||
|
|
|
@ -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 ] ] )
|
||||
|
|
Loading…
Reference in New Issue