-
-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avm2: Implement Error.getStackTrace #7786
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I probably missed it deep in a stack of Discord messages, or am staring at the answer but not getting it, but... is there any particular reason why 'getStackTrace' is only implemented for avm_debug builds?
There are 2 reasons:
|
Hmm, is Have you noticed |
I'm fine with switching it to use I do think that it could also make sense to use avm_debug, because from my perspective that's our equivalent to a flash debug build (as in, has release optimizations, but also has AVM debug features). Doing this means we technically have 2 types of debug builds: One that means we don't have release optimizations, and another that means we have AVM debug features. It might be easier to just say that any debug build should also have AVM debug features, though. I'm really not sure.
It returned null for me as well, I think its either the docs being wrong, or maybe they just started disabling it again in a later version of flash player |
I'm in favor of keeping this behind |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought about this a little more an avm_debug
makes sense, and debug_assertions
would make the tests fail if they were compiled in release mode. I was a little worried that the AVM1 logging was going to hurt our test speed but it's all disabled by a bool by default anyway.
Thank you!
a7004c1
to
1515c2c
Compare
Implements
getStackTrace
for Error. Also does a few other things:TObject::to_string
&TObject::to_locale_string
now take an activation, rather than mutationcontext.