sendError(id, error) {
    console.log(`<== ${id} sendError ${error}`);
    let callback = this.callbacks.get(id);
    if (callback) {
      callback(error instanceof Error ? error : new Error(error), null);
      this.callbacks.delete(id);
    }
  }
/**
   * @private Internal native error -> js
   */
@private Internal native error -> js
@private Internal native error - > js
sendError(id, error) {
    console.log(`<== ${id} sendError ${error}`);
    let callback = this.callbacks.get(id);
    if (callback) {
      callback(error instanceof Error ? error : new Error(error), null);
      this.callbacks.delete(id);
    }
  }
sendError ( id , error ) { console . log ( ` ${ id } ${ error } ` ) ; let callback = this . callbacks . get ( id ) ; if ( callback ) { callback ( error instanceof Error ? error : new Error ( error ) , null ) ; this . callbacks . delete ( id ) ; } }
@private Internal native error -> js
@private Internal native error - > js