text: // Copyright (C) 2016 the V8 project authors. All rights reserved.
  // This code is governed by the BSD license found in the LICENSE file.
  /*---
  description: Abrupt completion returned from GetIterator
  info: |
      ArrayAssignmentPattern : [ AssignmentElementList ]
  
      1. Let iterator be GetIterator(value).
      2. ReturnIfAbrupt(iterator).
  features: [Symbol.iterator]
  es6id: 12.14.5.2
  esid: sec-runtime-semantics-destructuringassignmentevaluation
  ---*/
  
  var iterable = {};
  iterable[Symbol.iterator] = function() {
    throw new Test262Error();
  };
  var x;
  
  assert.throws(Test262Error, function() {
    [ x ] = iterable;
  });
  