From befaab57a42d16b102e675e75acc247569012a48 Mon Sep 17 00:00:00 2001 From: Rick Waldron <waldron.rick@gmail.com> Date: Mon, 22 May 2017 12:48:43 -0400 Subject: [PATCH] Update cases and templates per review Signed-off-by: Rick Waldron <waldron.rick@gmail.com> --- src/dstr-binding-async-iteration/ary-init-iter-close.case | 6 +++--- .../ary-init-iter-get-err.case | 2 +- .../ary-init-iter-no-close.case | 6 +++--- src/dstr-binding-async-iteration/ary-name-iter-val.case | 2 +- .../ary-ptrn-elem-ary-elem-init.case | 2 +- .../ary-ptrn-elem-ary-elem-iter.case | 2 +- .../ary-ptrn-elem-ary-elision-init.case | 2 +- .../ary-ptrn-elem-ary-elision-iter.case | 2 +- .../ary-ptrn-elem-ary-empty-init.case | 2 +- .../ary-ptrn-elem-ary-empty-iter.case | 2 +- .../ary-ptrn-elem-ary-rest-init.case | 2 +- .../ary-ptrn-elem-ary-rest-iter.case | 2 +- .../ary-ptrn-elem-ary-val-null.case | 2 +- .../ary-ptrn-elem-id-init-exhausted.case | 2 +- .../ary-ptrn-elem-id-init-fn-name-arrow.case | 2 +- .../ary-ptrn-elem-id-init-fn-name-class.case | 2 +- .../ary-ptrn-elem-id-init-fn-name-cover.case | 2 +- .../ary-ptrn-elem-id-init-fn-name-fn.case | 2 +- .../ary-ptrn-elem-id-init-fn-name-gen.case | 2 +- .../ary-ptrn-elem-id-init-hole.case | 2 +- .../ary-ptrn-elem-id-init-skipped.case | 2 +- .../ary-ptrn-elem-id-init-throws.case | 2 +- .../ary-ptrn-elem-id-init-undef.case | 2 +- .../ary-ptrn-elem-id-init-unresolvable.case | 2 +- .../ary-ptrn-elem-id-iter-complete.case | 2 +- .../ary-ptrn-elem-id-iter-done.case | 2 +- .../ary-ptrn-elem-id-iter-step-err.case | 4 ++-- .../ary-ptrn-elem-id-iter-val-err.case | 4 ++-- .../ary-ptrn-elem-id-iter-val.case | 2 +- .../ary-ptrn-elem-obj-id-init.case | 2 +- .../ary-ptrn-elem-obj-id.case | 2 +- .../ary-ptrn-elem-obj-prop-id-init.case | 2 +- .../ary-ptrn-elem-obj-prop-id.case | 2 +- .../ary-ptrn-elem-obj-val-null.case | 2 +- .../ary-ptrn-elem-obj-val-undef.case | 2 +- .../ary-ptrn-elision-exhausted.case | 2 +- .../ary-ptrn-elision-step-err.case | 6 ++++-- src/dstr-binding-async-iteration/ary-ptrn-elision.case | 2 +- src/dstr-binding-async-iteration/ary-ptrn-empty.case | 2 +- .../ary-ptrn-rest-ary-elem.case | 2 +- .../ary-ptrn-rest-ary-elision.case | 2 +- .../ary-ptrn-rest-ary-empty.case | 2 +- .../ary-ptrn-rest-ary-rest.case | 2 +- .../ary-ptrn-rest-id-elision-next-err.case | 2 +- .../ary-ptrn-rest-id-elision.case | 2 +- .../ary-ptrn-rest-id-exhausted.case | 2 +- .../ary-ptrn-rest-id-iter-step-err.case | 2 +- .../ary-ptrn-rest-id-iter-val-err.case | 4 ++-- src/dstr-binding-async-iteration/ary-ptrn-rest-id.case | 2 +- .../ary-ptrn-rest-init-ary.case | 2 +- .../ary-ptrn-rest-init-id.case | 2 +- .../ary-ptrn-rest-init-obj.case | 2 +- .../ary-ptrn-rest-not-final-ary.case | 2 +- .../ary-ptrn-rest-not-final-id.case | 2 +- .../ary-ptrn-rest-not-final-obj.case | 2 +- .../ary-ptrn-rest-obj-id.case | 2 +- .../ary-ptrn-rest-obj-prop-id.case | 2 +- .../error/for-await-of-async-gen-const.template | 8 ++++++-- .../error/for-await-of-async-gen-let.template | 7 ++++++- .../error/for-await-of-async-gen-var.template | 7 ++++++- src/dstr-binding-async-iteration/obj-init-null.case | 2 +- src/dstr-binding-async-iteration/obj-init-undefined.case | 2 +- src/dstr-binding-async-iteration/obj-ptrn-empty.case | 2 +- .../obj-ptrn-id-get-value-err.case | 2 +- .../obj-ptrn-id-init-fn-name-arrow.case | 2 +- .../obj-ptrn-id-init-fn-name-class.case | 2 +- .../obj-ptrn-id-init-fn-name-cover.case | 2 +- .../obj-ptrn-id-init-fn-name-fn.case | 2 +- .../obj-ptrn-id-init-fn-name-gen.case | 2 +- .../obj-ptrn-id-init-skipped.case | 2 +- .../obj-ptrn-id-init-throws.case | 2 +- .../obj-ptrn-id-init-unresolvable.case | 2 +- .../obj-ptrn-id-trailing-comma.case | 2 +- src/dstr-binding-async-iteration/obj-ptrn-list-err.case | 2 +- .../obj-ptrn-prop-ary-init.case | 2 +- .../obj-ptrn-prop-ary-trailing-comma.case | 2 +- .../obj-ptrn-prop-ary-value-null.case | 2 +- src/dstr-binding-async-iteration/obj-ptrn-prop-ary.case | 2 +- .../obj-ptrn-prop-eval-err.case | 2 +- .../obj-ptrn-prop-id-get-value-err.case | 2 +- .../obj-ptrn-prop-id-init-skipped.case | 2 +- .../obj-ptrn-prop-id-init-throws.case | 2 +- .../obj-ptrn-prop-id-init-unresolvable.case | 2 +- .../obj-ptrn-prop-id-init.case | 2 +- .../obj-ptrn-prop-id-trailing-comma.case | 2 +- src/dstr-binding-async-iteration/obj-ptrn-prop-id.case | 2 +- .../obj-ptrn-prop-obj-init.case | 2 +- .../obj-ptrn-prop-obj-value-null.case | 2 +- .../obj-ptrn-prop-obj-value-undef.case | 2 +- src/dstr-binding-async-iteration/obj-ptrn-prop-obj.case | 2 +- 90 files changed, 115 insertions(+), 99 deletions(-) diff --git a/src/dstr-binding-async-iteration/ary-init-iter-close.case b/src/dstr-binding-async-iteration/ary-init-iter-close.case index ab18446305..860a773bf1 100644 --- a/src/dstr-binding-async-iteration/ary-init-iter-close.case +++ b/src/dstr-binding-async-iteration/ary-init-iter-close.case @@ -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. /*--- desc: Iterator is closed when not exhausted by pattern evaluation @@ -20,10 +20,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/src/dstr-binding-async-iteration/ary-init-iter-get-err.case b/src/dstr-binding-async-iteration/ary-init-iter-get-err.case index 3fd5f5c99e..22f52a5eeb 100644 --- a/src/dstr-binding-async-iteration/ary-init-iter-get-err.case +++ b/src/dstr-binding-async-iteration/ary-init-iter-get-err.case @@ -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. /*--- desc: Abrupt completion returned by GetIterator diff --git a/src/dstr-binding-async-iteration/ary-init-iter-no-close.case b/src/dstr-binding-async-iteration/ary-init-iter-no-close.case index b9277b1234..8184d2f2e5 100644 --- a/src/dstr-binding-async-iteration/ary-init-iter-no-close.case +++ b/src/dstr-binding-async-iteration/ary-init-iter-no-close.case @@ -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. /*--- desc: Iterator is not closed when exhausted by pattern evaluation @@ -20,10 +20,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/src/dstr-binding-async-iteration/ary-name-iter-val.case b/src/dstr-binding-async-iteration/ary-name-iter-val.case index 8c65a0868f..d793554bba 100644 --- a/src/dstr-binding-async-iteration/ary-name-iter-val.case +++ b/src/dstr-binding-async-iteration/ary-name-iter-val.case @@ -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. /*--- desc: SingleNameBinding with normal value iteration diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elem-init.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elem-init.case index 15df36937e..bdb8f5cf39 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elem-init.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elem-init.case @@ -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. /*--- desc: BindingElement with array binding pattern and initializer is used diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elem-iter.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elem-iter.case index b3668d6180..9bd2c5efd4 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elem-iter.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elem-iter.case @@ -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. /*--- desc: BindingElement with array binding pattern and initializer is not used diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elision-init.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elision-init.case index 49933f6364..0178a9989d 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elision-init.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elision-init.case @@ -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. /*--- desc: BindingElement with array binding pattern and initializer is used diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elision-iter.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elision-iter.case index 47da0accc9..62dbda5e42 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elision-iter.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-elision-iter.case @@ -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. /*--- desc: BindingElement with array binding pattern and initializer is not used diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-empty-init.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-empty-init.case index df0c90fdb5..753486e61c 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-empty-init.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-empty-init.case @@ -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. /*--- desc: BindingElement with array binding pattern and initializer is used diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-empty-iter.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-empty-iter.case index b2c0aa1f59..7658202439 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-empty-iter.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-empty-iter.case @@ -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. /*--- desc: BindingElement with array binding pattern and initializer is not used diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-rest-init.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-rest-init.case index 18ac2bb211..886ee7628b 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-rest-init.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-rest-init.case @@ -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. /*--- desc: BindingElement with array binding pattern and initializer is used diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-rest-iter.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-rest-iter.case index 63f77b64b3..4e59bec956 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-rest-iter.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-rest-iter.case @@ -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. /*--- desc: BindingElement with array binding pattern and initializer is not used diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-val-null.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-val-null.case index abe6ac4f3d..aeedd3dd93 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-val-null.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-ary-val-null.case @@ -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. /*--- desc: Nested array destructuring with a null value diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-exhausted.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-exhausted.case index fbd4ffa0ac..72863c8273 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-exhausted.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-exhausted.case @@ -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. /*--- desc: Destructuring initializer with an exhausted iterator diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-arrow.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-arrow.case index 0dda822299..d9508813b8 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-arrow.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-arrow.case @@ -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. /*--- desc: SingleNameBinding does assign name to arrow functions diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-class.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-class.case index fd129368d4..60c47a8c55 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-class.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-class.case @@ -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. /*--- desc: SingleNameBinding assigns `name` to "anonymous" classes diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-cover.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-cover.case index 40f16c07f2..7e0eeac7e6 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-cover.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-cover.case @@ -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. /*--- desc: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-fn.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-fn.case index d6b36ee6ac..978470e6d3 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-fn.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-fn.case @@ -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. /*--- desc: SingleNameBinding assigns name to "anonymous" functions diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-gen.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-gen.case index 04587c07cd..03c90595a6 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-gen.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-fn-name-gen.case @@ -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. /*--- desc: SingleNameBinding assigns name to "anonymous" generator functions diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-hole.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-hole.case index e34d9a1fd4..4da9a55451 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-hole.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-hole.case @@ -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. /*--- desc: Destructuring initializer with a "hole" diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-skipped.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-skipped.case index 803289ac0e..acee36deb0 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-skipped.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-skipped.case @@ -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. /*--- desc: Destructuring initializer is not evaluated when value is not `undefined` diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-throws.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-throws.case index 2b05bf7cd5..b4e2aa586f 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-throws.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-throws.case @@ -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. /*--- desc: Destructuring initializer returns an abrupt completion diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-undef.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-undef.case index 1767bd23db..b33370600c 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-undef.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-undef.case @@ -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. /*--- desc: Destructuring initializer with an undefined value diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-unresolvable.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-unresolvable.case index 109063ea87..453f4284ba 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-unresolvable.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-init-unresolvable.case @@ -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. /*--- desc: Destructuring initializer is an unresolvable reference diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-complete.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-complete.case index 93f3588e1d..0090e78252 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-complete.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-complete.case @@ -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. /*--- desc: SingleNameBinding when value iteration completes diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-done.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-done.case index 745eb08019..71be204d40 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-done.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-done.case @@ -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. /*--- desc: SingleNameBinding when value iteration was completed previously diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-step-err.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-step-err.case index 58feda2796..930ac459d1 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-step-err.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-step-err.case @@ -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. /*--- desc: Error forwarding when IteratorStep returns an abrupt completion @@ -19,7 +19,7 @@ info: | var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { throw new Test262Error(); } }; diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-val-err.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-val-err.case index e52c52a93d..65b569b266 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-val-err.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-val-err.case @@ -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. /*--- desc: Error forwarding when IteratorValue returns an abrupt completion @@ -30,7 +30,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-val.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-val.case index 20a3e47ba4..d1f6df4617 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-val.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-id-iter-val.case @@ -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. /*--- desc: SingleNameBinding when value iteration was completed previously diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-id-init.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-id-init.case index 2133fc1fc3..c792499b1f 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-id-init.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-id-init.case @@ -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. /*--- desc: BindingElement with object binding pattern and initializer is used diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-id.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-id.case index a8cf157efc..3ffcbeb043 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-id.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-id.case @@ -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. /*--- desc: BindingElement with object binding pattern and initializer is not used diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-prop-id-init.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-prop-id-init.case index 1ad7f3a6ca..6664569c44 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-prop-id-init.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-prop-id-init.case @@ -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. /*--- desc: BindingElement with object binding pattern and initializer is used diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-prop-id.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-prop-id.case index 8517cae5d7..be7410e971 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-prop-id.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-prop-id.case @@ -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. /*--- desc: BindingElement with object binding pattern and initializer is not used diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-val-null.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-val-null.case index 9f15b25aae..23b56ae8a4 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-val-null.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-val-null.case @@ -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. /*--- desc: Nested object destructuring with a null value diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-val-undef.case b/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-val-undef.case index 1f0c3aa990..3c884f3430 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-val-undef.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elem-obj-val-undef.case @@ -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. /*--- desc: Nested object destructuring with a value of `undefined` diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elision-exhausted.case b/src/dstr-binding-async-iteration/ary-ptrn-elision-exhausted.case index 1f3b1fd8e6..2d7cd5094a 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elision-exhausted.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elision-exhausted.case @@ -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. /*--- desc: Elision accepts exhausted iterator diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elision-step-err.case b/src/dstr-binding-async-iteration/ary-ptrn-elision-step-err.case index 7f0b3789f1..1f1d694480 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elision-step-err.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elision-step-err.case @@ -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. /*--- desc: Elision advances iterator and forwards abrupt completions @@ -25,7 +25,7 @@ features: [generator] //- setup var following = 0; -var iter =function* () { +var iter = function* () { throw new Test262Error(); following += 1; }(); @@ -35,3 +35,5 @@ var iter =function* () { iter //- error Test262Error +//- rejectBody +assert.sameValue(following, 0, "iterator is properly closed"); diff --git a/src/dstr-binding-async-iteration/ary-ptrn-elision.case b/src/dstr-binding-async-iteration/ary-ptrn-elision.case index 9784dea4f2..828e8413a3 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-elision.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-elision.case @@ -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. /*--- desc: Elision advances iterator diff --git a/src/dstr-binding-async-iteration/ary-ptrn-empty.case b/src/dstr-binding-async-iteration/ary-ptrn-empty.case index 49b126c225..6a348ea180 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-empty.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-empty.case @@ -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. /*--- desc: No iteration occurs for an "empty" array binding pattern diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-elem.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-elem.case index a143fdf1d9..bab100bba2 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-elem.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-elem.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-elision.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-elision.case index dc6b008a6d..d11cb72432 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-elision.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-elision.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-empty.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-empty.case index 11994f9933..bbaea3f56a 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-empty.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-empty.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-rest.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-rest.case index c794f9b447..428687e1c7 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-rest.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-ary-rest.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-id-elision-next-err.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-id-elision-next-err.case index 413ec04398..96ac1ad5a6 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-id-elision-next-err.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-id-elision-next-err.case @@ -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. /*--- template: error diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-id-elision.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-id-elision.case index 49780b19dc..0643b134dc 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-id-elision.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-id-elision.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-id-exhausted.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-id-exhausted.case index 1476e3cb96..18ab5e958c 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-id-exhausted.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-id-exhausted.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-id-iter-step-err.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-id-iter-step-err.case index 1bb3bd0637..48b826f78f 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-id-iter-step-err.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-id-iter-step-err.case @@ -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. /*--- template: error diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-id-iter-val-err.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-id-iter-val-err.case index b3fb42708b..5912533b88 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-id-iter-val-err.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-id-iter-val-err.case @@ -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. /*--- template: error @@ -31,7 +31,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-id.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-id.case index 1b0f446417..93ea865bee 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-id.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-id.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-init-ary.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-init-ary.case index ab359ad3f3..8d302fa4c9 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-init-ary.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-init-ary.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-init-id.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-init-id.case index e5ab514c08..157935b1a6 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-init-id.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-init-id.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-init-obj.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-init-obj.case index dc3cf7437a..e55c245fde 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-init-obj.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-init-obj.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-not-final-ary.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-not-final-ary.case index c76c83d0a4..4a7b66f869 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-not-final-ary.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-not-final-ary.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-not-final-id.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-not-final-id.case index 962733013a..b569bb020d 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-not-final-id.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-not-final-id.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-not-final-obj.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-not-final-obj.case index 00c70507ea..3540f3dd1c 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-not-final-obj.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-not-final-obj.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-obj-id.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-obj-id.case index fd42f56de5..5270aaddac 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-obj-id.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-obj-id.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/ary-ptrn-rest-obj-prop-id.case b/src/dstr-binding-async-iteration/ary-ptrn-rest-obj-prop-id.case index 3ad1150230..17c410b43c 100644 --- a/src/dstr-binding-async-iteration/ary-ptrn-rest-obj-prop-id.case +++ b/src/dstr-binding-async-iteration/ary-ptrn-rest-obj-prop-id.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/error/for-await-of-async-gen-const.template b/src/dstr-binding-async-iteration/error/for-await-of-async-gen-const.template index 4f4f2deb0f..85241ea97e 100644 --- a/src/dstr-binding-async-iteration/error/for-await-of-async-gen-const.template +++ b/src/dstr-binding-async-iteration/error/for-await-of-async-gen-const.template @@ -43,6 +43,10 @@ async function * gen() { } 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); - diff --git a/src/dstr-binding-async-iteration/error/for-await-of-async-gen-let.template b/src/dstr-binding-async-iteration/error/for-await-of-async-gen-let.template index 38c2f00fbc..f75e5e204b 100644 --- a/src/dstr-binding-async-iteration/error/for-await-of-async-gen-let.template +++ b/src/dstr-binding-async-iteration/error/for-await-of-async-gen-let.template @@ -43,5 +43,10 @@ async function * gen() { } 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); diff --git a/src/dstr-binding-async-iteration/error/for-await-of-async-gen-var.template b/src/dstr-binding-async-iteration/error/for-await-of-async-gen-var.template index 41f9d08a27..c0bbe2f0f0 100644 --- a/src/dstr-binding-async-iteration/error/for-await-of-async-gen-var.template +++ b/src/dstr-binding-async-iteration/error/for-await-of-async-gen-var.template @@ -43,6 +43,11 @@ async function * gen() { } 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); diff --git a/src/dstr-binding-async-iteration/obj-init-null.case b/src/dstr-binding-async-iteration/obj-init-null.case index 0772e36f77..23aa54c10c 100644 --- a/src/dstr-binding-async-iteration/obj-init-null.case +++ b/src/dstr-binding-async-iteration/obj-init-null.case @@ -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. /*--- template: error diff --git a/src/dstr-binding-async-iteration/obj-init-undefined.case b/src/dstr-binding-async-iteration/obj-init-undefined.case index f41405f6fe..90d27b0099 100644 --- a/src/dstr-binding-async-iteration/obj-init-undefined.case +++ b/src/dstr-binding-async-iteration/obj-init-undefined.case @@ -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. /*--- template: error diff --git a/src/dstr-binding-async-iteration/obj-ptrn-empty.case b/src/dstr-binding-async-iteration/obj-ptrn-empty.case index 97ecebd347..1431451d48 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-empty.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-empty.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/obj-ptrn-id-get-value-err.case b/src/dstr-binding-async-iteration/obj-ptrn-id-get-value-err.case index 68ae3348af..e076d45038 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-id-get-value-err.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-id-get-value-err.case @@ -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. /*--- template: error diff --git a/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-arrow.case b/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-arrow.case index 55cc1ad0ba..fa6f8c4421 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-arrow.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-arrow.case @@ -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. /*--- desc: SingleNameBinding assigns `name` to arrow functions diff --git a/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-class.case b/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-class.case index 2b5a385dda..78195dbc59 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-class.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-class.case @@ -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. /*--- desc: SingleNameBinding assigns `name` to "anonymous" classes diff --git a/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-cover.case b/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-cover.case index 624b00fce0..80fc16a634 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-cover.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-cover.case @@ -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. /*--- desc: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar diff --git a/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-fn.case b/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-fn.case index d6130cc9a6..7bdb04eb4c 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-fn.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-fn.case @@ -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. /*--- desc: SingleNameBinding assigns name to "anonymous" functions diff --git a/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-gen.case b/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-gen.case index 977d9f08d9..0faa807d89 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-gen.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-id-init-fn-name-gen.case @@ -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. /*--- desc: SingleNameBinding assigns name to "anonymous" generator functions diff --git a/src/dstr-binding-async-iteration/obj-ptrn-id-init-skipped.case b/src/dstr-binding-async-iteration/obj-ptrn-id-init-skipped.case index ef10476d53..841a67957b 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-id-init-skipped.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-id-init-skipped.case @@ -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. /*--- desc: Destructuring initializer is not evaluated when value is not `undefined` diff --git a/src/dstr-binding-async-iteration/obj-ptrn-id-init-throws.case b/src/dstr-binding-async-iteration/obj-ptrn-id-init-throws.case index e67f63480e..404b219ed4 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-id-init-throws.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-id-init-throws.case @@ -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. /*--- template: error diff --git a/src/dstr-binding-async-iteration/obj-ptrn-id-init-unresolvable.case b/src/dstr-binding-async-iteration/obj-ptrn-id-init-unresolvable.case index dd6d9dc839..c7240ada5a 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-id-init-unresolvable.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-id-init-unresolvable.case @@ -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. /*--- desc: Destructuring initializer is an unresolvable reference diff --git a/src/dstr-binding-async-iteration/obj-ptrn-id-trailing-comma.case b/src/dstr-binding-async-iteration/obj-ptrn-id-trailing-comma.case index 5dc0cbe68a..3cfb1f7100 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-id-trailing-comma.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-id-trailing-comma.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/obj-ptrn-list-err.case b/src/dstr-binding-async-iteration/obj-ptrn-list-err.case index 73dc15e7df..fd545b3987 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-list-err.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-list-err.case @@ -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. /*--- template: error diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-ary-init.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-ary-init.case index 41ffaa1ac6..0f002e6c30 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-ary-init.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-ary-init.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-ary-trailing-comma.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-ary-trailing-comma.case index 17007b54cf..7cccbd084b 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-ary-trailing-comma.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-ary-trailing-comma.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-ary-value-null.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-ary-value-null.case index abe84e43f7..af5b3ec081 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-ary-value-null.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-ary-value-null.case @@ -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. /*--- template: error diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-ary.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-ary.case index 254c8f06ba..40a73c566a 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-ary.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-ary.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-eval-err.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-eval-err.case index 9721474c36..12e9850090 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-eval-err.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-eval-err.case @@ -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. /*--- desc: Evaluation of property name returns an abrupt completion diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-id-get-value-err.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-id-get-value-err.case index 3851240d08..d54512d111 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-id-get-value-err.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-id-get-value-err.case @@ -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. /*--- desc: Error thrown when accessing the corresponding property of the value object diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init-skipped.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init-skipped.case index 49ec6684f2..35d96b5fa5 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init-skipped.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init-skipped.case @@ -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. /*--- desc: Destructuring initializer is not evaluated when value is not `undefined` diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init-throws.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init-throws.case index e878fc6f3a..7ae3799c50 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init-throws.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init-throws.case @@ -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. /*--- template: error diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init-unresolvable.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init-unresolvable.case index d11f68d9df..0733b66875 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init-unresolvable.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init-unresolvable.case @@ -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. /*--- desc: Destructuring initializer is an unresolvable reference diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init.case index 5b6723f746..52dfc6b2b2 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-id-init.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-id-trailing-comma.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-id-trailing-comma.case index cee4bc0577..c131b3e343 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-id-trailing-comma.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-id-trailing-comma.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-id.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-id.case index ebd0652976..3b9c894afb 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-id.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-id.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-obj-init.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-obj-init.case index cc6da66b45..9766387ce5 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-obj-init.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-obj-init.case @@ -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. /*--- template: default diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-obj-value-null.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-obj-value-null.case index 828049f9a0..2ea5ba4d09 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-obj-value-null.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-obj-value-null.case @@ -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. /*--- template: error diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-obj-value-undef.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-obj-value-undef.case index 6c4582af3d..a19912f838 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-obj-value-undef.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-obj-value-undef.case @@ -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. /*--- template: error diff --git a/src/dstr-binding-async-iteration/obj-ptrn-prop-obj.case b/src/dstr-binding-async-iteration/obj-ptrn-prop-obj.case index da412ccd6a..c38a0b8a24 100644 --- a/src/dstr-binding-async-iteration/obj-ptrn-prop-obj.case +++ b/src/dstr-binding-async-iteration/obj-ptrn-prop-obj.case @@ -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. /*--- template: default -- GitLab