This commit is contained in:
2024-12-07 19:08:14 -08:00
parent ba70845c09
commit 6ba88713f1
2 changed files with 5 additions and 3 deletions

View File

@@ -20,6 +20,8 @@ jobs:
node-version: 18 node-version: 18
- name: build - name: build
run: | run: |
apt update
apt-get install -y zip
pack install contrib pack install contrib
make make
cd playground cd playground

View File

@@ -27,7 +27,7 @@ const handleMessage = async function (ev: {data: CompileReq}) {
shim.stdout += "\n" + String(e); shim.stdout += "\n" + String(e);
} }
let duration = +new Date() - start; let duration = +new Date() - start;
console.log(`shim.process ${fn} in ${duration} ms`); console.log(`process ${fn} in ${duration} ms`);
let javascript = new TextDecoder().decode(shim.files[outfile]); let javascript = new TextDecoder().decode(shim.files[outfile]);
let output = shim.stdout; let output = shim.stdout;
sendResponse({ javascript, output, duration }); sendResponse({ javascript, output, duration });