Преглед изворни кода

* Send correct message in case of unhandled message

Michael Van Canneyt пре 9 месеци
родитељ
комит
3055de55dd
1 измењених фајлова са 1 додато и 1 уклоњено
  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);