소스 검색

* 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);