Skip to content

Instantly share code, notes, and snippets.

@dex4er
Created January 20, 2014 21:10
Show Gist options
  • Save dex4er/8529224 to your computer and use it in GitHub Desktop.
Save dex4er/8529224 to your computer and use it in GitHub Desktop.
emscripten pre-js
var Module = {};
Module.preRun = function() {
FS.mkdir('root');
FS.mount(NODEFS, { root: '/' }, 'root');
FS.chdir('root/' + process.cwd());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment