Skip to content
Snippets Groups Projects
Unverified Commit e6e4a489 authored by Simon Esposito's avatar Simon Esposito Committed by GitHub
Browse files

Correctly handle binary data in js runtime matches (#733)

Do not convert data to a string when passing the messages to the runtime,
this can cause encoding issues in the goja vm if the content is binary data.
Pass it as a JS TypedArray (Uint8Array) instead.

Introduce js runtime helper functions binaryToString and stringToBinary to
facilitate message data conversion.

Resolves #659
parent feb2de08
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment