question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ignoreUrls may not work if top-most frame is `eval` or `anonymous`

See original GitHub issue

ignoreUrls sometimes only looks at the top-most frame URL to decide whether to reject the error. But some frames have has no “source” and so they leak through.

Example:

SyntaxError: missing ) after argument list
  at new Function(<anonymous>)
  at Function._.template(/libs.js:123:1)
  at initializeTemplates(/app.js:456:2)
  at HTMLDocument.<anonymous>(/app.js:789:3)

Not sure what the solution is here. I’m not sure we should tear through and look at every frame (probably slow, e.g. m frames x n regexes).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
benvinegarcommented, Feb 6, 2017

Let’s just say I’m sensitive to this issue because I may have once deployed an inefficient regex into production that crashed browsers on certain inputs.

0reactions
kamilogorekcommented, Sep 4, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble using 'eval' to define a toplevel function when called ...
It binds that anonymous function to the current top scope with the name t1 . My initial question is about why I'm not...
Read more >
Seems that whitelistUrls not working - Feedback - #sentry
Have deployed raven to monitor javascript errors with whitelistUrls pointing to our domain, but in dashboard I do see errors from ...
Read more >
Agent Command - Sequentum
The Agent command is the first command that executes in an agent; all other commands are sub-commands. So, only one Agent command can...
Read more >
2.1 Setting OpenScript Preferences - Oracle Help Center
When playing back a script with a breakpoint in it, if the browser is the top-level window, it might not be clear that...
Read more >
raven.js | searchcode
84 * If the exception does not reach the top of the browser, you will only 85 * get a ... or empty...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found