| 1 |
// Copyright (C) 2015 the V8 project authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
/*--- |
| 4 |
es6id: 26.2.1.1 |
| 5 |
description: > |
| 6 |
Proxy ( target, handler ) |
| 7 |
|
| 8 |
When Proxy is called with arguments target and handler performs |
| 9 |
the following steps: |
| 10 |
|
| 11 |
... |
| 12 |
2. Return ProxyCreate(target, handler). (9.5.15) |
| 13 |
... |
| 14 |
9.5.15 ProxyCreate(target, handler) |
| 15 |
... |
| 16 |
5. Let P be a newly created object. |
| 17 |
... |
| 18 |
10. Return P. |
| 19 |
|
| 20 |
---*/ |
| 21 |
|
| 22 |
var p1 = new Proxy({}, {}); |
| 23 |
|
| 24 |
assert.sameValue( |
| 25 |
typeof p1, |
| 26 |
'object', |
| 27 |
'Return a newly created Object' |
| 28 |
); |