From 079e5ae15119401f66a4533034f14b37f083407a Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Mon, 20 Sep 2021 02:24:28 +0300 Subject: [PATCH] + encode the end_function dummy instruction --- compiler/wasm32/aasmcpu.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/wasm32/aasmcpu.pas b/compiler/wasm32/aasmcpu.pas index 1bdeebcb94..fefc6aabd2 100644 --- a/compiler/wasm32/aasmcpu.pas +++ b/compiler/wasm32/aasmcpu.pas @@ -548,6 +548,8 @@ implementation internalerror(2021092011); end; end; + a_end_function: + result:=0; else Writeln('Warning! Not implemented opcode, pass1: ', opcode); end; @@ -955,6 +957,8 @@ implementation internalerror(2021092011); end; end; + a_end_function: + ; else Writeln('Warning! Not implemented opcode, pass2: ', opcode); end;