Hanks10100 commented on issue #1798: js error like "xxx is undefine" will not 
call onJSException but just log
URL: https://github.com/apache/incubator-weex/issues/1798#issuecomment-441011430
 
 
   That's because js framework wrapped `try catch` to the [callback 
functions](https://github.com/apache/incubator-weex/blob/0.19.0/runtime/bridge/CallbackManager.js#L65-L70)
 and [event 
handlers](https://github.com/apache/incubator-weex/blob/rc-0.20.0/runtime/vdom/Element.js#L485-L496)
 and console it out. I think it's a good idea to throw the exceptions to native 
handlers, I'll remove those `try catch` in the next version.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to