From 8101ba079b8b358a015f4de9acbfc85d89c335da Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 25 Oct 2023 17:34:54 +0900 Subject: 作成 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/6 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 files/6 (limited to 'files/6') diff --git a/files/6 b/files/6 new file mode 100644 index 0000000..27a5416 --- /dev/null +++ b/files/6 @@ -0,0 +1,9 @@ +import PHPWasm from './php-wasm.js' + +const { ccall } = await PHPWasm(); +const result = ccall( + 'php_wasm_run', + 'number', ['string'], + [`echo "Hello, World!";`], +); +console.log(`exit code: ${result}`); -- cgit v1.2.3-70-g09d2