Commit f2168004 authored by Mark Haines's avatar Mark Haines
Browse files

Fix javascript bindings to correctly pass the random buffer

parent 84d6fbb0
......@@ -16,6 +16,7 @@ function random_stack(size) {
var ptr = stack(size);
var array = new Uint8Array(Module['HEAPU8'].buffer, ptr, size);
return ptr;
function restore_stack(wrapped) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment