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.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.tolocalestring
|
||||||
info: >
|
info: >
|
||||||
The elements of the array are converted to strings using their
|
The elements of the array are converted to strings using their
|
||||||
toLocaleString methods, and these strings are then concatenated, separated
|
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.
|
// 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"
|
info: "[[Get]] from not an inherited property"
|
||||||
es5id: 15.4.4.3_A3_T1
|
es5id: 15.4.4.3_A3_T1
|
||||||
description: "[[Prototype]] of Array instance is Array.prototype"
|
description: "[[Prototype]] of Array instance is Array.prototype"
|
||||||
|
@ -14,6 +15,6 @@ Array.prototype[1] = obj;
|
||||||
var x = [obj];
|
var x = [obj];
|
||||||
x.length = 2;
|
x.length = 2;
|
||||||
x.toLocaleString();
|
x.toLocaleString();
|
||||||
if (n !== 2) {
|
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));
|
$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.
|
// 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
|
info: The toLocaleString property of Array can't be used as constructor
|
||||||
es5id: 15.4.4.3_A4.7
|
es5id: 15.4.4.3_A4.7
|
||||||
description: >
|
description: >
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.tolocalestring
|
||||||
es6id: 22.1.3.26
|
es6id: 22.1.3.26
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.toLocaleString.name is "toLocaleString".
|
Array.prototype.toLocaleString.name is "toLocaleString".
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// 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
|
description: Array.prototype.toLocaleString called with primitive element
|
||||||
info: >
|
info: >
|
||||||
22.1.3.26 Array.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] )
|
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.
|
// 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
|
description: Array.prototype.toLocaleString called with primitive element in getter
|
||||||
info: >
|
info: >
|
||||||
22.1.3.26 Array.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] )
|
22.1.3.26 Array.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] )
|
||||||
|
|
Loading…
Reference in New Issue