wasm-idle 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,8 +16,10 @@ class Clang {
16
16
  this.worker.onmessage = () => resolve();
17
17
  this.worker.postMessage({ load: true, path, log, code });
18
18
  }
19
- else
19
+ else {
20
+ this.worker.postMessage({ log });
20
21
  resolve();
22
+ }
21
23
  });
22
24
  }
23
25
  write(input) {
@@ -16,8 +16,10 @@ class Python {
16
16
  this.worker.onmessage = () => resolve();
17
17
  this.worker.postMessage({ load: true, path, log, code });
18
18
  }
19
- else
19
+ else {
20
+ this.worker.postMessage({ log });
20
21
  resolve();
22
+ }
21
23
  });
22
24
  }
23
25
  write(input) {
@@ -48,6 +48,7 @@ self.onmessage = async (event) => {
48
48
  }
49
49
  }
50
50
  else if (code) {
51
+ clang.log = log;
51
52
  stdinBufferClang = new Int32Array(buffer);
52
53
  interruptBufferClang = new Uint8Array(interrupt);
53
54
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wasm-idle",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "A simple web app to run C++/Python code in the browser",
5
5
  "license": "MIT",
6
6
  "type": "module",