mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +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)
|
||||
c(recurse, ++current);
|
||||
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>
|
||||
</head>
|
||||
@ -41,6 +55,7 @@
|
||||
|
||||
<h2>Choose your poison...</h2>
|
||||
<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>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user