mirror of
https://github.com/tc39/test262.git
synced 2025-07-29 17:04:31 +02:00
add esid to array/prototype/shift tests
This commit is contained in:
parent
a62da2b499
commit
da291ca3b1
@ -5,6 +5,7 @@
|
||||
info: >
|
||||
If length equal zero, call the [[Put]] method of this object
|
||||
with arguments "length" and 0 and return undefined
|
||||
esid: sec-array.prototype.shift
|
||||
es5id: 15.4.4.9_A1.1_T1
|
||||
description: Checking this algorithm
|
||||
---*/
|
||||
|
@ -5,6 +5,7 @@
|
||||
info: >
|
||||
The first element of the array is removed from the array and
|
||||
returned
|
||||
esid: sec-array.prototype.shift
|
||||
es5id: 15.4.4.9_A1.2_T1
|
||||
description: Checking this use new Array() and []
|
||||
---*/
|
||||
|
@ -5,6 +5,7 @@
|
||||
info: >
|
||||
The shift function is intentionally generic.
|
||||
It does not require that its this value be an Array object
|
||||
esid: sec-array.prototype.shift
|
||||
es5id: 15.4.4.9_A2_T1
|
||||
description: >
|
||||
If ToUint32(length) equal zero, call the [[Put]] method of this
|
||||
|
@ -5,6 +5,7 @@
|
||||
info: >
|
||||
The shift function is intentionally generic.
|
||||
It does not require that its this value be an Array object
|
||||
esid: sec-array.prototype.shift
|
||||
es5id: 15.4.4.9_A2_T2
|
||||
description: >
|
||||
If ToUint32(length) equal zero, call the [[Put]] method of this
|
||||
|
@ -5,6 +5,7 @@
|
||||
info: >
|
||||
The shift function is intentionally generic.
|
||||
It does not require that its this value be an Array object
|
||||
esid: sec-array.prototype.shift
|
||||
es5id: 15.4.4.9_A2_T3
|
||||
description: >
|
||||
The first element of the array is removed from the array and
|
||||
|
@ -5,6 +5,7 @@
|
||||
info: >
|
||||
The shift function is intentionally generic.
|
||||
It does not require that its this value be an Array object
|
||||
esid: sec-array.prototype.shift
|
||||
es5id: 15.4.4.9_A2_T4
|
||||
description: >
|
||||
The first element of the array is removed from the array and
|
||||
|
@ -5,6 +5,7 @@
|
||||
info: >
|
||||
The shift function is intentionally generic.
|
||||
It does not require that its this value be an Array object
|
||||
esid: sec-array.prototype.shift
|
||||
es5id: 15.4.4.9_A2_T5
|
||||
description: >
|
||||
Operator use ToNumber from length. If Type(value) is Object,
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
/*---
|
||||
info: Check ToLength(length) for non Array objects
|
||||
esid: sec-array.prototype.shift
|
||||
es5id: 15.4.4.9_A3_T3
|
||||
description: length is arbitrarily
|
||||
---*/
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
/*---
|
||||
info: "[[Get]], [[Delete]] from not an inherited property"
|
||||
esid: sec-array.prototype.shift
|
||||
es5id: 15.4.4.9_A4_T1
|
||||
description: >
|
||||
[[Prototype]] of Array instance is Array.prototype, [[Prototype]
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
/*---
|
||||
info: "[[Get]], [[Delete]] from not an inherited property"
|
||||
esid: sec-array.prototype.shift
|
||||
es5id: 15.4.4.9_A4_T2
|
||||
description: >
|
||||
[[Prototype]] of Array instance is Array.prototype, [[Prototype]
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
/*---
|
||||
info: The shift property of Array can't be used as constructor
|
||||
esid: sec-array.prototype.shift
|
||||
es5id: 15.4.4.9_A5.7
|
||||
description: >
|
||||
If property does not implement the internal [[Construct]] method,
|
||||
|
1
test/built-ins/Array/prototype/shift/name.js
vendored
1
test/built-ins/Array/prototype/shift/name.js
vendored
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.shift
|
||||
es6id: 22.1.3.21
|
||||
description: >
|
||||
Array.prototype.shift.name is "shift".
|
||||
|
Loading…
x
Reference in New Issue
Block a user