| // Copyright (C) 2015 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Throws a TypeError exception if trap result is undefined and target is not |
| 14. If trapResultObj is undefined, then |
| e. If ToBoolean(extensibleTarget) is false, throw a TypeError exception. |
| var p = new Proxy(target, { |
| getOwnPropertyDescriptor: function(t, prop) { |
| Object.preventExtensions(target); |
| assert.throws(TypeError, function() { |
| Object.getOwnPropertyDescriptor(p, "foo"); |