blob: ed93c17b035e89fb3289030e81f9ced183973703 [file] [log] [blame]
// 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.11
description: >
Return abrupt result from target.[[OwnPropertyKeys]]()
info: |
26.1.11 Reflect.ownKeys ( target )
...
2. Let keys be target.[[OwnPropertyKeys]]().
3. ReturnIfAbrupt(keys).
...
features: [Proxy, Reflect]
---*/
var o = {};
var p = new Proxy(o, {
ownKeys: function() {
throw new Test262Error();
}
});
assert.throws(Test262Error, function() {
Reflect.ownKeys(p);
});