blob: 810420ff434fad8bcde3527962875cf1fc8a3f2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// 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;
}, '`new Function.prototype` throws a TypeError exception');
reportCompare(0, 0);
|