diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-02-26 13:21:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-03-03 15:27:26 +0900 |
| commit | 996259e6a1a04f91179d2b83cc19e3fbb371cd33 (patch) | |
| tree | 14ccabf37cc909c8c61899ffb84429fdeb8dfce0 /src/Execution/FuncInst.php | |
| parent | 8a789bffe72e93ae24ea39648018e5fecf94c7fa (diff) | |
| download | php-waddiwasi-996259e6a1a04f91179d2b83cc19e3fbb371cd33.tar.gz php-waddiwasi-996259e6a1a04f91179d2b83cc19e3fbb371cd33.tar.zst php-waddiwasi-996259e6a1a04f91179d2b83cc19e3fbb371cd33.zip | |
feat: implement some of instructions
Diffstat (limited to 'src/Execution/FuncInst.php')
| -rw-r--r-- | src/Execution/FuncInst.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |
