mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
- not built -
add a "two objects in scope" sample stack
This commit is contained in:
parent
fd5961321e
commit
50be851ee8
@ -31,7 +31,21 @@
|
|||||||
else if (current < recurse)
|
else if (current < recurse)
|
||||||
c(recurse, ++current);
|
c(recurse, ++current);
|
||||||
else
|
else
|
||||||
doDebugger();
|
debugger;
|
||||||
|
}
|
||||||
|
|
||||||
|
function scriptObject(foo)
|
||||||
|
{
|
||||||
|
this.foo = foo;
|
||||||
|
this.bar = "baz";
|
||||||
|
}
|
||||||
|
|
||||||
|
function makeObj()
|
||||||
|
{
|
||||||
|
var nativeObj = new Object();
|
||||||
|
var jsObj = new scriptObject(12345);
|
||||||
|
|
||||||
|
debugger;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
@ -41,6 +55,7 @@
|
|||||||
|
|
||||||
<h2>Choose your poison...</h2>
|
<h2>Choose your poison...</h2>
|
||||||
<button onclick="doDebugger();">debugger keyword, small stack</button><br>
|
<button onclick="doDebugger();">debugger keyword, small stack</button><br>
|
||||||
<button onclick="a();">debugger keyword, interesting stack</button>
|
<button onclick="a();">debugger keyword, interesting stack</button><br>
|
||||||
|
<button onclick="makeObj();">debugger keyword, two objects</button>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user