mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 13:28:38 +02:00
20 lines
632 B
JavaScript
20 lines
632 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* The Function prototype object is itself a Function object without [[create]] property
|
|
*
|
|
* @path ch15/15.3/15.3.4/S15.3.4_A5.js
|
|
* @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);
|
|
|
|
}
|
|
|