| // Copyright (C) 2016 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| description: Revoked proxy value produces a TypeError |
| 3. If argument is a Proxy exotic object, then |
| a. If the value of the [[ProxyHandler]] internal slot of argument is null, |
| throw a TypeError exception. |
| b. Let target be the value of the [[ProxyTarget]] internal slot of |
| c. Return ? IsArray(target). |
| var handle = Proxy.revocable([], {}); |
| assert.throws(TypeError, function() { |
| Array.isArray(handle.proxy); |