From 6eb2be4bb7416a36b7ab6fef2ab646a49d5dabfc Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Tue, 23 Sep 2025 04:59:09 +0300 Subject: [PATCH] + support the throw instruction in the internal WebAssembly assembler writer --- compiler/wasm32/aasmcpu.pas | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/compiler/wasm32/aasmcpu.pas b/compiler/wasm32/aasmcpu.pas index 3c8b3b6055..16ecccb697 100644 --- a/compiler/wasm32/aasmcpu.pas +++ b/compiler/wasm32/aasmcpu.pas @@ -2589,7 +2589,8 @@ uses end; end; a_legacy_catch, - a_legacy_throw: + a_legacy_throw, + a_throw: begin if ops<>1 then internalerror(2021092709); @@ -3583,12 +3584,14 @@ uses end; end; a_legacy_catch, - a_legacy_throw: + a_legacy_throw, + a_throw: begin case opcode of a_legacy_catch: WriteByte($07); - a_legacy_throw: + a_legacy_throw, + a_throw: WriteByte($08); else internalerror(2021092708);