diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-18 02:39:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-18 02:39:36 +0900 |
| commit | c44c6f91b89508a71a838406b286d114e461ca18 (patch) | |
| tree | 8e90f3c630924f02114bdb65c01ef0ee81657d33 /examples/php-on-wasm/php-wasm.php | |
| parent | 402d690243533cc1d1e164da1d44b8d913574aa8 (diff) | |
| download | php-waddiwasi-c44c6f91b89508a71a838406b286d114e461ca18.tar.gz php-waddiwasi-c44c6f91b89508a71a838406b286d114e461ca18.tar.zst php-waddiwasi-c44c6f91b89508a71a838406b286d114e461ca18.zip | |
refactor: simplify Runtime::instantiate()'s parameters
Diffstat (limited to 'examples/php-on-wasm/php-wasm.php')
| -rw-r--r-- | examples/php-on-wasm/php-wasm.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/php-on-wasm/php-wasm.php b/examples/php-on-wasm/php-wasm.php index 11bb5ac..78196d6 100644 --- a/examples/php-on-wasm/php-wasm.php +++ b/examples/php-on-wasm/php-wasm.php @@ -133,7 +133,7 @@ foreach ($imports as $moduleName => $moduleImports) { } } -$runtime = Runtime::instantiate($store, $module, $linker->resolve($module)); +$runtime = Runtime::instantiate($module, $linker); $codePtr = allocateStringOnWasmMemory($runtime, PHP_HELLO_WORLD); $results = $runtime->invoke("php_wasm_run", [$codePtr]); |
