Open
Bug 1770194
Opened 2 years ago
Updated 2 years ago
Add more jsshell function for testing of emscripten compiled code
Categories
(Core :: JavaScript Engine, task, P5)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: yury, Unassigned)
References
(Blocks 1 open bug)
Details
While compiling lots of misc C/C++ programs into .wasm+.js, I noticed that I can easily run them by just wrapping with code like:
const console = {
warn: print,
log: print,
error: print,
};
function readBinary(p) { return read(p, 'binary'); }
load("mandel.js");
Notice that console.warn
and readBinary
is enough to run applications generated by emscripten for node.js.
Comment 1•2 years ago
|
||
Nice. Presumably none of these programs use threads...
Updated•2 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•