aboutsummaryrefslogtreecommitdiffstats
path: root/src/dstr-assignment/obj-rest-put-const.case
blob: c3df5997d0891982599f57069ec414f8e16cd825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2017 Caio Lima. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
desc: >
    The object rest deconstruction assignment target should obey `const` semantics.
template: error
esid: pending
features: [object-rest]
---*/

//- setup
const rest = null;
//- error
TypeError
//- elems
{...rest}
//- vals
{}