summaryrefslogtreecommitdiff
path: root/test/built-ins/Function/prototype/S15.3.4_A5.js
blob: 49886228fdaf50d771d8378d4d6d172e8455bf9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: >
    The Function prototype object is itself a Function object without
    [[Construct]] property
es5id: 15.3.4_A5
description: Checking if creating "new Function.prototype object" fails
---*/

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