diff options
author | David Fugate <dfugate@microsoft.com> | 2012-01-16 11:27:31 -0800 |
---|---|---|
committer | David Fugate <dfugate@microsoft.com> | 2012-01-16 11:27:31 -0800 |
commit | b9160ef102b0b0b3952b991fbb0218b920c3339f (patch) | |
tree | 45bb385602756e2708bf6085ffaa8556cd506f92 /test | |
parent | a180d5f37193a8630f4edcb20e019c96405666c3 (diff) |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/suite/ch15/15.3/15.3.4/S15.3.4.1_A1_T2.js | 38 |
1 files changed, 0 insertions, 38 deletions
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 9705c3db8..000000000 --- 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"'); -} - |