Skip to content

set "stack" property of error to js stack trace #1505

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

Merged
merged 2 commits into from
Oct 11, 2019

Conversation

vtrifonov
Copy link
Contributor

@vtrifonov vtrifonov commented Oct 10, 2019

Related to #1445

Set the thrown javascript exception's "stack" property to the JS only stack trace as this is a JS error and works in the same way in iOS. The full stack trace (JS + Native) can be found in the "stackTrace" property

@cla-bot cla-bot bot added the cla: yes label Oct 10, 2019
@@ -285,9 +293,10 @@ public static String getStackTraceErrorMessage(Throwable ex) {

try {
content = baos.toString("US-ASCII");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be UTF-8?

@vtrifonov vtrifonov force-pushed the trifonov/setting-error-stack branch from 7543d81 to 9b4ebf1 Compare October 11, 2019 14:34
@vtrifonov vtrifonov merged commit c2ee6e7 into master Oct 11, 2019
@vtrifonov vtrifonov deleted the trifonov/setting-error-stack branch October 11, 2019 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants