3 <script src=
"resources/profiler-test-JS-resources.js"></script>
5 console
.profile("Using the call() method");
8 var myObject
= new fakeObject(1, 2);
12 function fakeObject (x
, y
)
15 fakeInteriorFunction
.call(this, y
);
18 function fakeInteriorFunction(y
)
26 <body onload=
"startTest()">
27 This page's JavaScript has a call to call() in it.
30 To use this test, load it in the browser then load the WebInspector and look at
31 the profile. In the profile there should be a call to fakeObject() with call() as
32 its child and a fakeInteriorFunction() as call()'s child.
33 <div id=
"output"></div>