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