rginda%netscape.com cbefd374c9 - not built -
add a "two objects in scope" sample stack


git-svn-id: svn://10.0.0.236/trunk@93123 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 06:48:32 +00:00

62 lines
1.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>venkman test content page</title>
<script>
function doDebugger()
{
debugger;
}
function a()
{
var x = 1;
var y = "b";
var z = x + y;
b(x, y, z);
}
function b(x, y, z)
{
var recurse = 3;
c(3);
}
function c(recurse, current)
{
if (typeof current == "undefined")
c(recurse, 1);
else if (current < recurse)
c(recurse, ++current);
else
debugger;
}
function scriptObject(foo)
{
this.foo = foo;
this.bar = "baz";
}
function makeObj()
{
var nativeObj = new Object();
var jsObj = new scriptObject(12345);
debugger;
}
</script>
</head>
<body>
<h1>venkman test content page</h1>
<h2>Choose your poison...</h2>
<button onclick="doDebugger();">debugger keyword, small stack</button><br>
<button onclick="a();">debugger keyword, interesting stack</button><br>
<button onclick="makeObj();">debugger keyword, two objects</button>
</body>
</html>