Sets the error handler function.
value is a function that handles errors represented as JSObject.
value
set onError(void Function(JSObject e) value) => _options.onError = value.toJS;