| // Copyright (C) 2015 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Trap is called with handler on its context and target as the first |
| [[PreventExtensions]] ( ) |
| 8. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target»)). |
| preventExtensions: function(t) { |
| return Object.preventExtensions(target); |
| var p = new Proxy(target, handler); |
| Object.preventExtensions(p); |
| assert.sameValue(_handler, handler); |
| assert.sameValue(_target, target); |