| // Copyright (C) 2015 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| /*--- |
| es6id: 26.1.8 |
| description: > |
| Return abrupt result from getting the prototype. |
| info: | |
| 26.1.8 Reflect.getPrototypeOf ( target ) |
| |
| ... |
| 2. Return target.[[GetPrototypeOf]](). |
| ... |
| features: [Proxy, Reflect] |
| ---*/ |
| |
| var o1 = {}; |
| var p = new Proxy(o1, { |
| getPrototypeOf: function() { |
| throw new Test262Error(); |
| } |
| }); |
| |
| assert.throws(Test262Error, function() { |
| Reflect.getPrototypeOf(p); |
| }); |