mirror of
https://github.com/tc39/test262.git
synced 2025-11-30 02:23:10 +01:00
26 lines
537 B
Plaintext
26 lines
537 B
Plaintext
// 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
|
|
template: error
|
|
info: |
|
|
13.3.3.5 Runtime Semantics: BindingInitialization
|
|
|
|
BindingPattern : ArrayBindingPattern
|
|
|
|
1. Let iterator be ? GetIterator(value).
|
|
features: [Symbol.iterator]
|
|
---*/
|
|
|
|
//- setup
|
|
var iter = {};
|
|
iter[Symbol.iterator] = function() {
|
|
throw new Test262Error();
|
|
};
|
|
//- elems
|
|
[x]
|
|
//- vals
|
|
iter
|
|
//- error
|
|
Test262Error
|