Replies: 5 comments
-
Whether WebAssembly is accessible depends on the operating system. For example, it is not available on ios. Since it is not available on all operating systems, it is not recommended to use WebAssembly if you want to be cross-platform. |
Beta Was this translation helpful? Give feedback.
-
@chexiongsheng Hi and thank you for the answer.
I've tried loading the wasm script with puerts running in the unity editor so WebAssembly is actually not accessible there.
I am aware of iOS clients JIT limitations, and I am not interested in iOS at all
I am really focusing on STANDALONE and ANDROID platforms here so I am definitely not expecting a fully cross-platform support for WebAssebly. Knowing all the above constraints: is there a way to enable WebAssembly access through puerts for standalone and android platforms ? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Debug version of mac plugins disable the WebAssembly. You can use a release version. |
Beta Was this translation helpful? Give feedback.
-
@chexiongsheng Hi again, I can't find anything about this (debug vs release builds of the PuerTS) mentioned in the docs and faq. I installed the PuerTS via Unity's UPM from local clone of Please explain how to "use a release version" ? |
Beta Was this translation helpful? Give feedback.
-
download here: https://github.com/Tencent/puerts/releases |
Beta Was this translation helpful? Give feedback.
-
Hi All.
I am trying to execute a js script using puerts V8 or node.js backends.
The js script calls WebAssembly API to load and instantiate the wasm binary module asynchronously.
I had not problem getting this script to execute using ClearScript lib with V8.
When trying to do the same using PuerTS I am getting the
"System.Exception: chunk:4: ReferenceError: WebAssembly is not defined" error.
Is WebAssembly accessible in V8 or node.js backends? by default or does it need to be enabled within custom puerts build ?
Any help is greatly aperciated!
Beta Was this translation helpful? Give feedback.
All reactions