second-state / wasmedge-quickjs

A high-performance, secure, extensible, and OCI-complaint JavaScript runtime for WasmEdge.
Apache License 2.0
477 stars 59 forks source link

What is the quickjs source code? #117

Open chenhdc opened 8 months ago

chenhdc commented 8 months ago

Hi team. Thanks for your efforts.

I'd like to see what changes you've made to the quickjs source code, but I can only see libquickjs.a and the corresponding bingding. Where can I see the corresponding source code changes?

could show me the repo? Thanks,,,

juntao commented 8 months ago

We made no change to QuickJS itself. We just extended it to add more APIs.

chenhdc commented 8 months ago

We made no change to QuickJS itself. We just extended it to add more APIs.

oh,thanks. I have another question, how to compile QuickJs to libquickjs.a? use wasi-sdk-20? Looking forward to your reply, thanks

L-jasmine commented 8 months ago

@chenhdc https://github.com/second-state/quickjs-wasi This is the QuickJS repository we cloned, but we haven't made any changes.

The key to compiling QuickJS into WASI is to add a WASI macro after every wasm macro in QuickJS. This is because QuickJS already has support for wasm