summaryrefslogtreecommitdiff
path: root/test/built-ins/Proxy/construct/trap-is-not-callable.js
blob: 41bc0c700c64b6e695e2dfaa430a00211a022253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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.14
description: >
    Throws if trap is not callable.
---*/

function Target() {}
var p = new Proxy(Target, {
  construct: {}
});

assert.throws(TypeError, function() {
  new p();
});