Browse Source

* Send correct message in case of unhandled message

Michael Van Canneyt 9 tháng trước cách đây
mục cha
commit
3055de55dd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/wasi/src/rtl.webthreads.pas

+ 1 - 1
packages/wasi/src/rtl.webthreads.pas

@@ -570,7 +570,7 @@ begin
   P:=TWorkerExceptionCommand.New;
   P.ExceptionClass:='ENotSupportedException';
   P.ExceptionMessage:='Unsupported command : '+TJSJSON.Stringify(aCommand);
-  SendCommand(aCommand);
+  SendCommand(P);
 end;
 
 procedure TWasmThreadSupport.SendCommand(aCommand: TWorkerCommand);