throwErrorFromJS function

  1. @JS('_throwErrorFromJS')
Never throwErrorFromJS(
  1. 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);