aboutsummaryrefslogtreecommitdiffstats
path: root/src/dstr-assignment-for-await/array-elem-put-prop-ref-user-err.case
blob: fdba045b9b2df28190446c2a270d2f619234a3d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2017 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
desc: >
    Any error raised as a result of setting the value should be forwarded to
    the runtime.
template: default
es6id: 12.14.5.3
---*/

//- setup
let x = {
  set y(val) {
    throw new Test262Error();
  }
};
//- elems
[x.y]
//- vals
[23]

//- teardown
promise.then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
  assert.sameValue(iterCount, 0);
  assert.sameValue(constructor, Test262Error);
}).then($DONE, $DONE);