Last 12 weeks · 0 commits
2 of 6 standards met
The example code doesn't function correctly in version 0.15.2 of zig. The following error shows up in the dev console: This was caused by a breaking change in Zig in which the default behavior was to implicitly export symbols, which is no longer the case. It looks like it has perhaps been broken since this PR: https://github.com/ziglang/zig/pull/14102
I found that if I specify a return value of type for or , it does not compile and does not work. I think both Zig and JavaScript need to be modified. In the Zig code, change the return type of from to because it is probably incorrect. In the JavaScript code, when the obtained value is a boolean, write to the output pointer is probably missing, so add it.
Repository: mitchellh/zig-js. Description: Access the JS host environment from Zig compiled to WebAssembly. Stars: 286, Forks: 14. Primary language: Zig. Languages: Zig (58%), TypeScript (37.2%), Nix (3.3%), JavaScript (0.6%), HTML (0.5%). License: MIT. Open PRs: 3, open issues: 2. Last activity: 5mo ago. Community health: 42%. Top contributors: mitchellh, pluiedev, der-teufel-programming.