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)

task

Tracking

()

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.

Nice. Presumably none of these programs use threads...

Severity: -- → N/A
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.