Update cases and templates per review

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
Rick Waldron 2017-05-22 12:48:43 -04:00
parent fd3510dd16
commit befaab57a4
90 changed files with 115 additions and 99 deletions

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Iterator is closed when not exhausted by pattern evaluation desc: Iterator is closed when not exhausted by pattern evaluation
@ -20,10 +20,10 @@ var doneCallCount = 0;
var iter = {}; var iter = {};
iter[Symbol.iterator] = function() { iter[Symbol.iterator] = function() {
return { return {
next: function() { next() {
return { value: null, done: false }; return { value: null, done: false };
}, },
return: function() { return() {
doneCallCount += 1; doneCallCount += 1;
return {}; return {};
} }

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Abrupt completion returned by GetIterator desc: Abrupt completion returned by GetIterator

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Iterator is not closed when exhausted by pattern evaluation desc: Iterator is not closed when exhausted by pattern evaluation
@ -20,10 +20,10 @@ var doneCallCount = 0;
var iter = {}; var iter = {};
iter[Symbol.iterator] = function() { iter[Symbol.iterator] = function() {
return { return {
next: function() { next() {
return { value: null, done: true }; return { value: null, done: true };
}, },
return: function() { return() {
doneCallCount += 1; doneCallCount += 1;
return {}; return {};
} }

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding with normal value iteration desc: SingleNameBinding with normal value iteration

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: BindingElement with array binding pattern and initializer is used desc: BindingElement with array binding pattern and initializer is used

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: BindingElement with array binding pattern and initializer is not used desc: BindingElement with array binding pattern and initializer is not used

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: BindingElement with array binding pattern and initializer is used desc: BindingElement with array binding pattern and initializer is used

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: BindingElement with array binding pattern and initializer is not used desc: BindingElement with array binding pattern and initializer is not used

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: BindingElement with array binding pattern and initializer is used desc: BindingElement with array binding pattern and initializer is used

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: BindingElement with array binding pattern and initializer is not used desc: BindingElement with array binding pattern and initializer is not used

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: BindingElement with array binding pattern and initializer is used desc: BindingElement with array binding pattern and initializer is used

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: BindingElement with array binding pattern and initializer is not used desc: BindingElement with array binding pattern and initializer is not used

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Nested array destructuring with a null value desc: Nested array destructuring with a null value

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Destructuring initializer with an exhausted iterator desc: Destructuring initializer with an exhausted iterator

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding does assign name to arrow functions desc: SingleNameBinding does assign name to arrow functions

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding assigns `name` to "anonymous" classes desc: SingleNameBinding assigns `name` to "anonymous" classes

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar desc: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding assigns name to "anonymous" functions desc: SingleNameBinding assigns name to "anonymous" functions

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding assigns name to "anonymous" generator functions desc: SingleNameBinding assigns name to "anonymous" generator functions

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Destructuring initializer with a "hole" desc: Destructuring initializer with a "hole"

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Destructuring initializer is not evaluated when value is not `undefined` desc: Destructuring initializer is not evaluated when value is not `undefined`

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Destructuring initializer returns an abrupt completion desc: Destructuring initializer returns an abrupt completion

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Destructuring initializer with an undefined value desc: Destructuring initializer with an undefined value

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Destructuring initializer is an unresolvable reference desc: Destructuring initializer is an unresolvable reference

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding when value iteration completes desc: SingleNameBinding when value iteration completes

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding when value iteration was completed previously desc: SingleNameBinding when value iteration was completed previously

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Error forwarding when IteratorStep returns an abrupt completion desc: Error forwarding when IteratorStep returns an abrupt completion
@ -19,7 +19,7 @@ info: |
var g = {}; var g = {};
g[Symbol.iterator] = function() { g[Symbol.iterator] = function() {
return { return {
next: function() { next() {
throw new Test262Error(); throw new Test262Error();
} }
}; };

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Error forwarding when IteratorValue returns an abrupt completion desc: Error forwarding when IteratorValue returns an abrupt completion
@ -30,7 +30,7 @@ var poisonedValue = Object.defineProperty({}, 'value', {
var g = {}; var g = {};
g[Symbol.iterator] = function() { g[Symbol.iterator] = function() {
return { return {
next: function() { next() {
return poisonedValue; return poisonedValue;
} }
}; };

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding when value iteration was completed previously desc: SingleNameBinding when value iteration was completed previously

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: BindingElement with object binding pattern and initializer is used desc: BindingElement with object binding pattern and initializer is used

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: BindingElement with object binding pattern and initializer is not used desc: BindingElement with object binding pattern and initializer is not used

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: BindingElement with object binding pattern and initializer is used desc: BindingElement with object binding pattern and initializer is used

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: BindingElement with object binding pattern and initializer is not used desc: BindingElement with object binding pattern and initializer is not used

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Nested object destructuring with a null value desc: Nested object destructuring with a null value

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Nested object destructuring with a value of `undefined` desc: Nested object destructuring with a value of `undefined`

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Elision accepts exhausted iterator desc: Elision accepts exhausted iterator

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Elision advances iterator and forwards abrupt completions desc: Elision advances iterator and forwards abrupt completions
@ -35,3 +35,5 @@ var iter =function* () {
iter iter
//- error //- error
Test262Error Test262Error
//- rejectBody
assert.sameValue(following, 0, "iterator is properly closed");

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Elision advances iterator desc: Elision advances iterator

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: No iteration occurs for an "empty" array binding pattern desc: No iteration occurs for an "empty" array binding pattern

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: error template: error

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: error template: error

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: error template: error
@ -31,7 +31,7 @@ var poisonedValue = Object.defineProperty({}, 'value', {
var iter = {}; var iter = {};
iter[Symbol.iterator] = function() { iter[Symbol.iterator] = function() {
return { return {
next: function() { next() {
return poisonedValue; return poisonedValue;
} }
}; };

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -43,6 +43,10 @@ async function * gen() {
} }
gen().next() gen().next()
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, /*{ error }*/)) .then(_ => {
throw new Test262Error("Expected async function to reject, but resolved.");
}, ({ constructor }) => {
assert.sameValue(constructor, /*{ error }*/);
/*{ rejectBody }*/
})
.then($DONE, $DONE); .then($DONE, $DONE);

View File

@ -43,5 +43,10 @@ async function * gen() {
} }
gen().next() gen().next()
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, /*{ error }*/)) .then(_ => {
throw new Test262Error("Expected async function to reject, but resolved.");
}, ({ constructor }) => {
assert.sameValue(constructor, /*{ error }*/);
/*{ rejectBody }*/
})
.then($DONE, $DONE); .then($DONE, $DONE);

View File

@ -43,6 +43,11 @@ async function * gen() {
} }
gen().next() gen().next()
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, /*{ error }*/)) .then(_ => {
throw new Test262Error("Expected async function to reject, but resolved.");
}, ({ constructor }) => {
assert.sameValue(constructor, /*{ error }*/);
/*{ rejectBody }*/
})
.then($DONE, $DONE); .then($DONE, $DONE);

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: error template: error

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: error template: error

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: error template: error

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding assigns `name` to arrow functions desc: SingleNameBinding assigns `name` to arrow functions

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding assigns `name` to "anonymous" classes desc: SingleNameBinding assigns `name` to "anonymous" classes

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar desc: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding assigns name to "anonymous" functions desc: SingleNameBinding assigns name to "anonymous" functions

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: SingleNameBinding assigns name to "anonymous" generator functions desc: SingleNameBinding assigns name to "anonymous" generator functions

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Destructuring initializer is not evaluated when value is not `undefined` desc: Destructuring initializer is not evaluated when value is not `undefined`

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: error template: error

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Destructuring initializer is an unresolvable reference desc: Destructuring initializer is an unresolvable reference

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: error template: error

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: error template: error

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Evaluation of property name returns an abrupt completion desc: Evaluation of property name returns an abrupt completion

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Error thrown when accessing the corresponding property of the value object desc: Error thrown when accessing the corresponding property of the value object

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Destructuring initializer is not evaluated when value is not `undefined` desc: Destructuring initializer is not evaluated when value is not `undefined`

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: error template: error

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
desc: Destructuring initializer is an unresolvable reference desc: Destructuring initializer is an unresolvable reference

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: error template: error

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: error template: error

View File

@ -1,4 +1,4 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 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.
/*--- /*---
template: default template: default