blob: 03bfe379674e831939944850f956aa0ff2e9951e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 9.5.8
description: >
Trap returns abrupt.
info: |
[[Get]] (P, Receiver)
9. Let trapResult be Call(trap, handler, «target, P, Receiver»).
10. ReturnIfAbrupt(trapResult).
features: [Proxy]
---*/
var p = new Proxy({}, {
get: function() {
throw new Test262Error();
}
});
assert.throws(Test262Error, function() {
p.attr;
});
assert.throws(Test262Error, function() {
p["attr"];
});
reportCompare(0, 0);
|