You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a library that can use Hermes directly to run a web-worker-like environment in React Native
I make use of asyncTriggerTimeout to terminate workers. I'd expect to be able to catch these errors as JSError - but I can't work out how to actually do this
I added code I think should work, and some breakpoints. I can see the error is indeed the JSError instance I'm expecting - but I can't seem to be able to access it as anything other than a std::exception
I have some code here. Note it also handles JSC - hence the macros.
Any help would be greatly appreciated!
Solution
Additional Context
The text was updated successfully, but these errors were encountered:
Problem
I've got a library that can use Hermes directly to run a web-worker-like environment in React Native
I make use of
asyncTriggerTimeout
to terminate workers. I'd expect to be able to catch these errors asJSError
- but I can't work out how to actually do thisI added code I think should work, and some breakpoints. I can see the error is indeed the
JSError
instance I'm expecting - but I can't seem to be able to access it as anything other than astd::exception
I have some code here. Note it also handles JSC - hence the macros.
Any help would be greatly appreciated!
Solution
Additional Context
The text was updated successfully, but these errors were encountered: