From b9160ef102b0b0b3952b991fbb0218b920c3339f Mon Sep 17 00:00:00 2001 From: David Fugate <dfugate@microsoft.com> Date: Mon, 16 Jan 2012 11:27:31 -0800 Subject: [PATCH] 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. --- .../suite/ch15/15.3/15.3.4/S15.3.4.1_A1_T2.js | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 test/suite/ch15/15.3/15.3.4/S15.3.4.1_A1_T2.js diff --git a/test/suite/ch15/15.3/15.3.4/S15.3.4.1_A1_T2.js b/test/suite/ch15/15.3/15.3.4/S15.3.4.1_A1_T2.js deleted file mode 100644 index 9705c3db82..0000000000 --- a/test/suite/ch15/15.3/15.3.4/S15.3.4.1_A1_T2.js +++ /dev/null @@ -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"'); -} - -- GitLab