| // 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 |
| 4. If Type(replacer) is Object, then |
| a. If IsCallable(replacer) is true, then |
| i. Let ReplacerFunction be replacer. |
| i. Let isArray be ? IsArray(replacer). |
| 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() { |
| JSON.stringify({}, handle.proxy); |