Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unity] Bug: #1956

Open
3 tasks done
ostryhub opened this issue Dec 28, 2024 · 1 comment
Open
3 tasks done

[Unity] Bug: #1956

ostryhub opened this issue Dec 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working Unity

Comments

@ostryhub
Copy link

前置阅读 | Pre-reading

Puer的版本 | Puer Version

2.1.2

Unity的版本 | Unity Version

6000.0.22f

发生在哪个平台 | Platform

Editor(mac)

错误信息 | Error Message

System.Exception: chunk:4: ReferenceError: WebAssembly is not defined

ReferenceError: WebAssembly is not defined
at chunk:4:44
at Puerts.JsEnv.Eval (System.String chunk, System.String chunkName) [0x0002b] in ./submodules/puerts_unity_demo/package/Runtime/Src/Default/JsEnv.cs:340

问题重现 | Bug reproduce

Eval any js script that tries to load the wasm module using global V8 WebAssembly API.

@ostryhub ostryhub added bug Something isn't working Unity labels Dec 28, 2024
@chexiongsheng
Copy link
Collaborator

V8's webassembly relies on jit. Jit is not available on some platforms (such as ios), and webassembly is not recommended. Under mac, if the plugin you compile is a debug version, webassembly is also turned off by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Unity
Projects
None yet
Development

No branches or pull requests

2 participants