throwErrorFromJS function
- @JS('_throwErrorFromJS')
- dynamic error
Throws the error passed to it from Javascript. This allows us to catch the error in dart which re-dartifies the js errors/exceptions.
Implementation
@JS('_throwErrorFromJS')
external Never throwErrorFromJS(error);