blob: 5f9ac9c5efc3c4c5b2cf03ee7182c01934c7cd63 [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.9
description: >
Return abrupt result.
info: |
26.1.9 Reflect.has ( target, propertyKey )
...
4. Return target.[[HasProperty]](key).
features: [Proxy, Reflect]
---*/
var o = {};
var p = new Proxy(o, {
has: function() {
throw new Test262Error();
}
});
assert.throws(Test262Error, function() {
Reflect.has(p, 'p1');
});