Mark Miller removed this invalid test in Sputnik (see http://code.google.com/p/sputniktests/source/detail?r=93), and

I'm propagating that change to test262 now.
This commit is contained in:
David Fugate 2012-01-16 11:27:31 -08:00
parent a180d5f371
commit b9160ef102
1 changed files with 0 additions and 38 deletions

View File

@ -1,38 +0,0 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* The initial value of Function.prototype.constructor is the built-in Function constructor
*
* @path ch15/15.3/15.3.4/S15.3.4.1_A1_T2.js
* @description Create new Function.prototype.constructor object
*/
var constr = Function.prototype.constructor;
var f = new constr;
// CHECK#0
if (f === undefined) {
$ERROR('#0: new Function() return the newly created function object.');
}
// CHECK#1
if (f.constructor !== Function) {
$ERROR('#1: new Function() create a new function object');
}
// CHECK#2
if (!(Function.prototype.isPrototypeOf(f))) {
$ERROR('#2: when new Function() calls the [[Prototype]] property of the newly constructed object is set to the Function prototype object.');
}
// CHECK#3
var to_string_result = '[object '+ 'Function' +']';
delete Function.prototype.toString;
if (f.toString() !== to_string_result) {
$ERROR('#3: when new Function() calls the [[Class]] property of the newly constructed object is set to "Function"');
}