blob: eddb08694d9caef8ebad527eae06e84b4efca910 (
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
28
29
30
31
32
33
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.3.3.5
description: >
Normal completion when initializing an empty ObjectBindingPattern
info: |
13.3.3.5 Runtime Semantics: BindingInitialization
BindingPattern : ObjectBindingPattern
...
3. Return the result of performing BindingInitialization for
ObjectBindingPattern using value and environment as arguments.
ObjectBindingPattern : { }
1. Return NormalCompletion(empty).
features: [destructuring-binding]
---*/
function fn({}) { return true; }
assert(fn(0));
assert(fn(NaN));
assert(fn(''));
assert(fn(false));
assert(fn({}));
assert(fn([]));
reportCompare(0, 0);
|