Skip to content

Transmuting to static mut reference: Is it correct? #2122

Answered by h-a-n-a
Nugine asked this question in Q&A
Discussion options

You must be logged in to vote

This is considered to be safe under the compilation call from the JavaScript side. But It is not a safe if you are trying to cache the compilation and reuse it after any rebuilds, which would cause some potential segmentation faults.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@h-a-n-a
Comment options

Answer selected by Nugine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants