From c44c6f91b89508a71a838406b286d114e461ca18 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 18 Jul 2024 02:39:36 +0900 Subject: refactor: simplify Runtime::instantiate()'s parameters --- examples/hello-world/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/hello-world') diff --git a/examples/hello-world/index.php b/examples/hello-world/index.php index 9b0b1bd..6129a07 100644 --- a/examples/hello-world/index.php +++ b/examples/hello-world/index.php @@ -30,6 +30,6 @@ $linker = new Linker($store); $linker->register('', 'putc', Extern::Func(FuncInst::Host(new FuncType([ValType::I32], []), function (Runtime $runtime, int $c) { printf('%c', $c); }))); -$runtime = Runtime::instantiate($store, $module, $linker->resolve($module)); +$runtime = Runtime::instantiate($module, $linker); $runtime->invoke('main', []); -- cgit v1.2.3-70-g09d2