mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 00:14:35 +02:00
Update cases and templates per review
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
fd3510dd16
commit
befaab57a4
@ -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 {};
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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 {};
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
@ -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`
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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`
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
@ -25,7 +25,7 @@ features: [generator]
|
|||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
var following = 0;
|
var following = 0;
|
||||||
var iter =function* () {
|
var iter = function* () {
|
||||||
throw new Test262Error();
|
throw new Test262Error();
|
||||||
following += 1;
|
following += 1;
|
||||||
}();
|
}();
|
||||||
@ -35,3 +35,5 @@ var iter =function* () {
|
|||||||
iter
|
iter
|
||||||
//- error
|
//- error
|
||||||
Test262Error
|
Test262Error
|
||||||
|
//- rejectBody
|
||||||
|
assert.sameValue(following, 0, "iterator is properly closed");
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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`
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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`
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user