error-stack-parser
error-stack-parser copied to clipboard
Error while parsing trace of pages with spaces in hash
I have problem with correct function name detection on page http://localhost:3000/#test -some
with trace generated on <button onclick="undefinedFunction()"></button>
Current stack:
error.stack
"ReferenceError: asd is not defined
at HTMLButtonElement.onclick (http://localhost:3000/#test -some:7:32)"
Expected Behavior
file: "http://localhost:3000/#test -some" name: "HTMLButtonElement.onclick"
Current Behavior
file:"-some" name:"HTMLButtonElement.onclick (http://localhost:3000/#test"
Steps to Reproduce (for bugs)
add error handler and parser on simple page with address: http://localhost:3000/#test -some
(space in hash)
and click on page on <button onclick="undefinedFunction()"></button>
Your Environment
Chrome 51.0.2704.79