blob: b78237e62c784ecd437261e0c3d50f1a0b107651 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (C) 2017 Caio Lima. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
Rest deconstruction doesn't happen if getter return is abrupt
template: error
esid: pending
features: [object-rest]
---*/
//- setup
var x;
var count = 0;
//- elems
{...x}
//- vals
{ get v() { count++; throw new Test262Error(); } }
//- error
Test262Error
//- teardown
assert.sameValue(count, 1);
|