emitError({ pos, error }) {
    const event = new FFEvent();
    event.pos = pos;
    event.error = Utils.getErrStack(error);
    this.emit('error', event);
  }
Trigger an error event, you can locate the location of the error
@public