tests/auto/qml/ecmascripttests/test262/test/built-ins/Proxy/preventExtensions/trap-is-undefined.js
raw| 1 | // 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 | /*--- |
| 4 | es6id: 9.5.4 |
| 5 | description: > |
| 6 | Return target.[[PreventExtensions]]() if target is undefined. |
| 7 | features: [Reflect] |
| 8 | ---*/ |
| 9 | |
| 10 | var target = {}; |
| 11 | var p = new Proxy(target, {}); |
| 12 | |
| 13 | assert.sameValue(Reflect.preventExtensions(p), true); |