Created
February 20, 2013 12:29
-
-
Save rakeshpai/4995193 to your computer and use it in GitHub Desktop.
Opera .stack / .stacktrace madness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<title>Stackgen</title> | |
<script src="stackgen.js"></script> | |
<script> | |
try { | |
stackgen(); | |
} catch(e) { | |
ex = e; | |
throw e; | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function stackgen() { | |
newFrame(); | |
} | |
function newFrame() { | |
badCall(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following all done in Opera/11.6.
When accessing ex.stacktrace for the first time, I sometimes get the following (reload if you don't):
(Yes, it has the superflous newlines)
Accessing the .stacktrace property multiple times consistently gives the same result.
Now, access ex.stack. You'll get something like this:
All fine. Now, access ex.stacktrace again. I get this:
I haven't changed anything in ex. Why is .stacktrace different before and after accessing .stack?