aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/hello-world/index.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-18 02:39:36 +0900
committernsfisis <nsfisis@gmail.com>2024-07-18 02:39:36 +0900
commitc44c6f91b89508a71a838406b286d114e461ca18 (patch)
tree8e90f3c630924f02114bdb65c01ef0ee81657d33 /examples/hello-world/index.php
parent402d690243533cc1d1e164da1d44b8d913574aa8 (diff)
downloadphp-waddiwasi-c44c6f91b89508a71a838406b286d114e461ca18.tar.gz
php-waddiwasi-c44c6f91b89508a71a838406b286d114e461ca18.tar.zst
php-waddiwasi-c44c6f91b89508a71a838406b286d114e461ca18.zip
refactor: simplify Runtime::instantiate()'s parameters
Diffstat (limited to 'examples/hello-world/index.php')
-rw-r--r--examples/hello-world/index.php2
1 files changed, 1 insertions, 1 deletions
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', []);