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

/*---
desc: >
    TypeError is thrown when rhs is null because of 7.1.13 ToObject ( argument )
    used by CopyDataProperties
template: error
esid: pending
features: [object-rest]
---*/

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