reportJSException function

void reportJSException(
  1. int engineId,
  2. Pointer<Utf16> descriptionStream,
  3. Pointer<Utf16> stackStream
)

Implementation

void reportJSException(
  int engineId,
  Pointer<Utf16> descriptionStream,
  Pointer<Utf16> stackStream,
) {
  var exception = descriptionStream.toDartString();
  var stackTrace = stackStream.toDartString();
  LogUtils.e(
    "Voltron_bridge",
    "reportJsException\n !!!!!!!!!!!!!!!!!!! \n Error($exception)\n StackTrace($stackTrace)",
  );

  final bridge = VoltronBridgeManager.bridgeMap[engineId];
  if (bridge != null) {
    bridge.reportException(exception, stackTrace);
  }
}