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

Document that Wasm code generation is disallowed #13469

Closed
dario-piotrowicz opened this issue Mar 15, 2024 · 2 comments · Fixed by #14361
Closed

Document that Wasm code generation is disallowed #13469

dario-piotrowicz opened this issue Mar 15, 2024 · 2 comments · Fixed by #14361
Assignees
Labels
content:new Request for new/missing content documentation Documentation edits product:workers Related to Workers product

Comments

@dario-piotrowicz
Copy link
Member

dario-piotrowicz commented Mar 15, 2024

Proposed changes

In our Javascript standards section we document that eval() and new Function are not allowed for security reasons.

We should also add that wasm code generation is also disallowed.


Is the Javascript Standards section the best place for this information? or is there a different more proper location for this?

@dario-piotrowicz
Copy link
Member Author

I'd likely follow this page from the Next.js docs: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation

and mention:

  • WebAssembly.compile and
  • WebAssembly.instantiate

(source)

@irvinebroque
Copy link
Contributor

Just make a PR, can always move it. https://developers.cloudflare.com/workers/runtime-apis/webassembly/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content:new Request for new/missing content documentation Documentation edits product:workers Related to Workers product
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants