Debian Codegraph @

js/src/tests/test262/built-ins/Proxy/apply/trap-is-not-callable.js

raw
1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-proxy-object-internal-methods-and-internal-slots-call-thisargument-argumentslist
5 description: >
6 Throws if trap is not callable.
7 features: [Proxy]
8 ---*/
9
10 var p = new Proxy(function() {}, {
11 apply: {}
12 });
13
14 assert.throws(TypeError, function() {
15 p();
16 });
17
18 reportCompare(0, 0);