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.

Error when mutating Error objects in Safari

See original GitHub issue

Safari does not allow setting of Error.column, as is done is raiseRecorverable:

https://github.com/eslint/espree/blob/88446f3fd0ad21ae09497bbfdd05c0afa06da70c/espree.js#L393

This throws: Error: Attempted to assign to readonly property.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
nzakascommented, Jul 23, 2016

We should probably create an EspreeSyntaxError constructor that inherits from SyntaxError instead. That would be a bit cleaner.

@justinfagnani can you submit a PR?

0reactions
justinfagnanicommented, Nov 21, 2018

FYI, we added the workaround above, so I’m not sure if Safari still throws or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CoreData: error: Mutating a manage… - Apple Developer
CoreData: error: Mutating a managed object after it has been removed from it's context.
Read more >
How to fix this mutating error? - ios - Stack Overflow
I'm getting this error: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Attempt to mutate immutable ...
Read more >
Testing Error State of Mutation is throwing Global Error #7167
I want to reopen apollographql/react-apollo#2614 from the old repo as I ran into the exact same Issue today with @apollo/client": "3.2.2.
Read more >
Prevent Object Mutation - correct solution with a console error ...
After following the instruction on what to do, the console displayed the following error message: TypeError: Cannot assign to read only ...
Read more >
DOMException - Web APIs | MDN
DOMException.code · Returns one of the legacy error code constants, or 0 if none match. ; DOMException.message · Returns a string representing a ......
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