This is a trick I came up with while debugging some memory corruption, 
using JS 
Proxies 
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
 
you can break on arbitrary memory access.

A gist demonstrating it is 
here: https://gist.github.com/hackcasual/c0b8ae2c034397f29ffd5d6e0606ef79

I believe in Firefox you would need to remove the "use asm" as this is not 
valid asm.js.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to