mirror of
https://github.com/tc39/test262.git
synced 2025-07-16 10:34:44 +02:00
26 lines
591 B
Plaintext
26 lines
591 B
Plaintext
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
desc: Abrupt completion returned from GetIterator
|
|
info: |
|
|
ArrayAssignmentPattern : [ Elision ]
|
|
|
|
1. Let iterator be GetIterator(value).
|
|
2. ReturnIfAbrupt(iterator).
|
|
features: [Symbol.iterator]
|
|
template: error
|
|
esid: sec-runtime-semantics-destructuringassignmentevaluation
|
|
---*/
|
|
|
|
//- setup
|
|
var iterable = {};
|
|
iterable[Symbol.iterator] = function() {
|
|
throw new Test262Error();
|
|
};
|
|
//- error
|
|
Test262Error
|
|
//- elems
|
|
[ , ]
|
|
//- vals
|
|
iterable
|