keith_miller@apple.com | bcc77f2 | 2016-07-15 06:03:25 +0000 | [diff] [blame] | 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.4 | ||||
5 | description: > | ||||
6 | Throws a TypeError exception if handler is null. | ||||
7 | ---*/ | ||||
8 | |||||
9 | var p = Proxy.revocable({}, {}); | ||||
10 | |||||
11 | p.revoke(); | ||||
12 | |||||
13 | assert.throws(TypeError, function() { | ||||
14 | Object.preventExtensions(p.proxy); | ||||
15 | }); |