blob: 23175ea80ba68a8b761ee5e5d9f94f25e19dee07 (
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
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-proxy-object-internal-methods-and-internal-slots-call-thisargument-argumentslist
description: >
Return the result from the trap method.
info: |
[[Call]] (thisArgument, argumentsList)
9. Return Call(trap, handler, «target, thisArgument, argArray»).
features: [Proxy]
---*/
var result = {};
var p = new Proxy(function() {
throw new Test262Error('target should not be called');
}, {
apply: function(t, c, args) {
return result;
},
});
assert.sameValue(p.call(), result);
reportCompare(0, 0);
|