Conversation
|
Why can't an EM_ASM return a bigint? |
I mean it could... but it could return a bigint without MEMORY64 too. I guess that question really is, why was this block added in the first place? I think that answer is that it used to be that we treated pointers as bigint under wasm64, so it make it more likely. Nowadays we turn pointers into int53 numbers at the boundary so it no more likely that an EM_ASM block would return a bigint under wasm64 or wasm32. |
|
I see. Makes sense. Lgtm if we have a test of returning a pointer from an EM_ASM that works in MEMORY64 mode. |
We actually have a separate |
|
Nice, I didn't know we had |
ad3c632 to
e684698
Compare
|
I think I'm going to land #18218 first which refactors stuff here. |
The only reason this might be useful is of the EM_ASM block happens to return a bigint, which, in general, should not be that case.
e684698 to
49ce3e5
Compare
The only reason this might be useful is of the EM_ASM block happens to return a bigint, which, in general, should not be that case.