add esid to ArrayIterator/next tests

This commit is contained in:
deathbearbrown 2017-07-05 07:42:27 -07:00 committed by Rick Waldron
parent 4ea2931f16
commit ea88caaedf
24 changed files with 32 additions and 8 deletions

View File

@ -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-get-arraybuffer-@@species
es6id: 24.1.3.3 es6id: 24.1.3.3
description: > description: >
get ArrayBuffer [ @@species ].length is 0. get ArrayBuffer [ @@species ].length is 0.

View File

@ -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.
/*--- /*---
es6id: 22.1.5.2.1 es6id: 22.1.5.2.1
esid: sec-%arrayiteratorprototype%.next
description: > description: >
Visits each element of the array in order and ceases iteration once all Visits each element of the array in order and ceases iteration once all
values have been visited. values have been visited.

View File

@ -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.
/*--- /*---
es6id: 22.1.5.2.1 es6id: 22.1.5.2.1
esid: sec-%arrayiteratorprototype%.next
description: > description: >
Visits each element of the array in order and ceases iteration once all Visits each element of the array in order and ceases iteration once all
values have been visited. values have been visited.

View File

@ -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.
/*--- /*---
es6id: 22.1.5.2.1 es6id: 22.1.5.2.1
esid: sec-%arrayiteratorprototype%.next
description: > description: >
Visits each element of the array in order and ceases iteration once all Visits each element of the array in order and ceases iteration once all
values have been visited. values have been visited.

View File

@ -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.
/*--- /*---
es6id: 22.1.5.2.1 es6id: 22.1.5.2.1
esid: sec-%arrayiteratorprototype%.next
description: > description: >
Visits each element of the array in order and ceases iteration once all Visits each element of the array in order and ceases iteration once all
values have been visited. values have been visited.

View File

@ -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.
/*--- /*---
es6id: 22.1.5.2.1 es6id: 22.1.5.2.1
esid: sec-%arrayiteratorprototype%.next
description: > description: >
Visits each element of the array in order and ceases iteration once all Visits each element of the array in order and ceases iteration once all
values have been visited. values have been visited.

View File

@ -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.
/*--- /*---
es6id: 22.1.5.2.1 es6id: 22.1.5.2.1
esid: sec-%arrayiteratorprototype%.next
description: > description: >
Visits each element of the array in order and ceases iteration once all Visits each element of the array in order and ceases iteration once all
values have been visited. values have been visited.

View File

@ -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.
/*--- /*---
es6id: 22.1.5.2.1 es6id: 22.1.5.2.1
esid: sec-%arrayiteratorprototype%.next
description: > description: >
Visits each element of the array in order and ceases iteration once all Visits each element of the array in order and ceases iteration once all
values have been visited. values have been visited.

View File

@ -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.
/*--- /*---
es6id: 22.1.5.2.1 es6id: 22.1.5.2.1
esid: sec-%arrayiteratorprototype%.next
description: > description: >
Visits each element of the array in order and ceases iteration once all Visits each element of the array in order and ceases iteration once all
values have been visited. values have been visited.

View File

@ -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.
/*--- /*---
es6id: 22.1.5.2.1 es6id: 22.1.5.2.1
esid: sec-%arrayiteratorprototype%.next
description: > description: >
Visits each element of the array in order and ceases iteration once all Visits each element of the array in order and ceases iteration once all
values have been visited. values have been visited.

View File

@ -1,7 +1,8 @@
// Copyright (C) 2014 the V8 project authors. All rights reserved. // Copyright (C) 2014 the V8 project authors. All rights reserved.
// 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.
/*--- /*---
es6id: 9.4.4.7 S22 es6id: 9.4.4.7
esid: sec-%arrayiteratorprototype%.next
description: > description: >
Once exhausted, iterators for mapped arguments exotic objects should not Once exhausted, iterators for mapped arguments exotic objects should not
emit new values added to the object. emit new values added to the object.

View File

@ -1,7 +1,8 @@
// Copyright (C) 2014 the V8 project authors. All rights reserved. // Copyright (C) 2014 the V8 project authors. All rights reserved.
// 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.
/*--- /*---
es6id: 9.4.4.7 S22 es6id: 9.4.4.7
esid: sec-%arrayiteratorprototype%.next S22
description: > description: >
Prior to being exhausted, iterators for mapped arguments exotic objects Prior to being exhausted, iterators for mapped arguments exotic objects
should honor the insertion of additional argument values. should honor the insertion of additional argument values.

View File

@ -1,7 +1,8 @@
// Copyright (C) 2014 the V8 project authors. All rights reserved. // Copyright (C) 2014 the V8 project authors. All rights reserved.
// 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.
/*--- /*---
es6id: 9.4.4.7 S22 es6id: 9.4.4.7
esid: sec-%arrayiteratorprototype%.next S22
description: > description: >
Mapped arguments exotic objects should implement the Array iterator Mapped arguments exotic objects should implement the Array iterator
protocol. protocol.

View File

@ -1,7 +1,8 @@
// Copyright (C) 2014 the V8 project authors. All rights reserved. // Copyright (C) 2014 the V8 project authors. All rights reserved.
// 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.
/*--- /*---
es6id: 9.4.4.7 S22 es6id: 9.4.4.7
esid: sec-%arrayiteratorprototype%.next S22
description: > description: >
Prior to being exhausted, iterators for mapped arguments exotic objects Prior to being exhausted, iterators for mapped arguments exotic objects
should honor argument removal. should honor argument removal.

View File

@ -1,7 +1,8 @@
// Copyright (C) 2014 the V8 project authors. All rights reserved. // Copyright (C) 2014 the V8 project authors. All rights reserved.
// 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.
/*--- /*---
es6id: 9.4.4.6 S7 es6id: 9.4.4.6
esid: sec-%arrayiteratorprototype%.next S7
description: > description: >
Once exhausted, iterators for unmapped arguments exotic objects should not Once exhausted, iterators for unmapped arguments exotic objects should not
emit new values added to the object. emit new values added to the object.

View File

@ -1,7 +1,8 @@
// Copyright (C) 2014 the V8 project authors. All rights reserved. // Copyright (C) 2014 the V8 project authors. All rights reserved.
// 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.
/*--- /*---
es6id: 9.4.4.6 S7 es6id: 9.4.4.6
esid: sec-%arrayiteratorprototype%.next
description: > description: >
Prior to being exhausted, iterators for unmapped arguments exotic objects Prior to being exhausted, iterators for unmapped arguments exotic objects
should honor the insertion of additional argument values. should honor the insertion of additional argument values.

View File

@ -1,7 +1,8 @@
// Copyright (C) 2014 the V8 project authors. All rights reserved. // Copyright (C) 2014 the V8 project authors. All rights reserved.
// 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.
/*--- /*---
es6id: 9.4.4.6 S7 es6id: 9.4.4.6
esid: sec-%arrayiteratorprototype%.next S7
description: > description: >
Unmapped arguments exotic objects should implement the Array iterator Unmapped arguments exotic objects should implement the Array iterator
protocol. protocol.

View File

@ -1,7 +1,8 @@
// Copyright (C) 2014 the V8 project authors. All rights reserved. // Copyright (C) 2014 the V8 project authors. All rights reserved.
// 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.
/*--- /*---
es6id: 9.4.4.6 S7 es6id: 9.4.4.6
esid: sec-%arrayiteratorprototype%.next S7
description: > description: >
Prior to being exhausted, iterators for unmapped arguments exotic objects Prior to being exhausted, iterators for unmapped arguments exotic objects
should honor argument removal. should honor argument removal.

View File

@ -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-%arrayiteratorprototype%.next
description: > description: >
When an item is added to the array after the iterator is created but When an item is added to the array after the iterator is created but
before the iterator is "done" (as defined by 22.1.5.2.1), the new item before the iterator is "done" (as defined by 22.1.5.2.1), the new item

View File

@ -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-%arrayiteratorprototype%.next
description: > description: >
The method should return a valid iterator with the context as the The method should return a valid iterator with the context as the
IteratedObject. IteratedObject.

View File

@ -3,6 +3,7 @@
/*--- /*---
es6id: 22.1.5.2.1 es6id: 22.1.5.2.1
esid: sec-%arrayiteratorprototype%.next
description: > description: >
%ArrayIteratorPrototype%.next.length is 0. %ArrayIteratorPrototype%.next.length is 0.
info: > info: >

View File

@ -3,6 +3,7 @@
/*--- /*---
es6id: 22.1.5.2.1 es6id: 22.1.5.2.1
esid: sec-%arrayiteratorprototype%.next
description: > description: >
%ArrayIteratorPrototype%.next.name is "next". %ArrayIteratorPrototype%.next.name is "next".
info: > info: >

View File

@ -6,6 +6,7 @@
If the `this` value does not have all of the internal slots of an Array If the `this` value does not have all of the internal slots of an Array
Iterator Instance (22.1.5.3), throw a TypeError exception. Iterator Instance (22.1.5.3), throw a TypeError exception.
es6id: 22.1.5.2.1 es6id: 22.1.5.2.1
esid: sec-%arrayiteratorprototype%.next
---*/ ---*/
var array = [0]; var array = [0];

View File

@ -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-%arrayiteratorprototype%.next
description: > description: >
The method should exist on the ArrayIterator prototype, and it should be The method should exist on the ArrayIterator prototype, and it should be
writable and configurable, but not enumerable. writable and configurable, but not enumerable.