]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/FunctionObjects/call-1.js
3 Section: Function.prototype.call
7 Author: christine@netscape.com
10 var SECTION
= "call-1";
11 var VERSION
= "ECMA_2";
12 var TITLE
= "Function.prototype.call";
15 writeHeaderToLog( SECTION
+ " "+ TITLE
);
18 var testcases
= new Array();
21 testcases
[tc
++] = new TestCase( SECTION
,
22 "ToString.call( this, this )",
24 ToString
.call( this, this ) );
26 testcases
[tc
++] = new TestCase( SECTION
,
27 "ToString.call( Boolean, Boolean.prototype )",
29 ToString
.call( Boolean
, Boolean
.prototype ) );
31 testcases
[tc
++] = new TestCase( SECTION
,
32 "ToString.call( Boolean, Boolean.prototype.valueOf() )",
34 ToString
.call( Boolean
, Boolean
.prototype.valueOf() ) );
38 function ToString( obj
) {