blob: 56c7b6766efab8a4fe80e657ad04a14780aaf72a (
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 ```undefined``` 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
undefined
|