blob: 6390d1743a71e0c6910ffb1ae87437431872677e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.3.4_A5;
* @section: 15.3.4;
* @assertion: The Function prototype object is itself a Function object without [[create]] property;
* @description: Checking if creating "new Function.prototype object" fails;
*/
//CHECK#
try {
var obj = new Function.prototype;
$FAIL('#1: The Function prototype object is itself a Function object without [[create]] property: '+e);
} catch (e) {
$PRINT("#1.1: The Function prototype object is itself a Function object without [[create]] property "+e);
}
|