From 996259e6a1a04f91179d2b83cc19e3fbb371cd33 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 26 Feb 2024 13:21:22 +0900 Subject: feat: implement some of instructions --- src/Execution/FuncInst.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Execution/FuncInst.php') diff --git a/src/Execution/FuncInst.php b/src/Execution/FuncInst.php index c69eb80..901fa81 100644 --- a/src/Execution/FuncInst.php +++ b/src/Execution/FuncInst.php @@ -14,8 +14,8 @@ abstract readonly class FuncInst return new FuncInsts\Wasm($type, $module, $code); } - final public static function Host(FuncType $type, callable $code): FuncInsts\Host + final public static function Host(FuncType $type, callable $callback): FuncInsts\Host { - return new FuncInsts\Host($type, $code); + return new FuncInsts\Host($type, $callback); } } -- cgit v1.2.3-70-g09d2