error-stack-parser icon indicating copy to clipboard operation
error-stack-parser copied to clipboard

Error while parsing trace of pages with spaces in hash

Open Kein1945 opened this issue 8 years ago • 0 comments

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

Kein1945 avatar Jul 06 '16 13:07 Kein1945