Class org.teavm.platform.Platform is not supported on current target (WASM_GC) #1146
-
|
How to do this on WASM_GC target? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
|
You should not do this on ANY target. |
Beta Was this translation helpful? Give feedback.
-
|
Okay, how do I pass Int8Array as byte[] from javascript > java ? |
Beta Was this translation helpful? Give feedback.
-
|
could you provide a simple example how to fill Int8Array passed from Javascript to a Java method? |
Beta Was this translation helpful? Give feedback.
-
|
This sounds good but I still need a piece of code. Lets say, I have an Int8Array populated in javascript and I want to pass that to a java method. |
Beta Was this translation helpful? Give feedback.
-
|
One more thing, how I do convert Int8Array to ByteBuffer fast? Can I hack it like this? |
Beta Was this translation helpful? Give feedback.
Just
(Int8Array) databut overall it's not the correct way. Try something like
Finally, you can just create a module
and set
Servicesas a main class (you don't need main method). Instead ofmain, your WasmGC module will providepostEventmethod.