-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix RN frames on Android ... #875
Conversation
1. Don't treat presence of "native" string everywhere as meaning "native code" 2. Properly parse when not protocol / only leading forward slash fixes #731
@@ -396,7 +396,7 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() { | |||
|
|||
for (var i = 0, j = lines.length; i < j; ++i) { | |||
if ((parts = chrome.exec(lines[i]))) { | |||
var isNative = parts[2] && parts[2].indexOf('native') !== -1; | |||
var isNative = parts[2] && parts[2].indexOf('native') === 0; // start of line |
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.
This is covered by the CHROME_48_BLOB
test:
I've also verified the format is the same in my Chrome 56 (on the console):
setTimeout(function callback() {
[1].forEach(function iterate() { oops(); });
});
Emits:
Uncaught ReferenceError: oops is not defined
at iterate (<anonymous>:2:36)
at Array.forEach (native) # <-- bingo
at callback (<anonymous>:2:7)
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.
the test looks good to me and it seems to address the issue (don't have a android react native environment to confirm)
@benvinegar @MaxBittker when will this be released? |
I could try and cut 3.13.2 tomorrow morning. |
@benvinegar that'll be awesome thanks |
@benvinegar any word on that release? |
@benvinegar ?? |
@f0rr0 – sorry, have been busy. It's not as easy as hitting a button, alas. |
@benvinegar sorry for bugging you, really appreciate this thanks |
We released 3.14.0 today. |
fixes #731
See also: csnover/TraceKit#69
cc @getsentry/javascript