| 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: 9.5.15 |
| 5 |
description: > |
| 6 |
Proxy ( target, handler ) |
| 7 |
... |
| 8 |
2. If target is a Proxy exotic object and the value of the |
| 9 |
[[ProxyHandler]] internal slot of target is null, throw a |
| 10 |
TypeError exception. |
| 11 |
... |
| 12 |
---*/ |
| 13 |
|
| 14 |
var revocable = Proxy.revocable({}, {}); |
| 15 |
|
| 16 |
revocable.revoke(); |
| 17 |
|
| 18 |
assert.throws(TypeError, function() { |
| 19 |
new Proxy(revocable.proxy, {}); |
| 20 |
}); |