2 this['Module'] = Module;
5 this['Module'] = Module = {};
7 if (typeof process === 'object') {
8 if (typeof(FS) === 'object') {
9 Module['preRun'] = Module['preRun'] || [];
10 Module['preRun'].push(function() {
12 FS.mkdir('/test-data');
13 FS.mount(NODEFS, { root: '.' }, '/test-data');
17 Module['print'] = function(x) {
18 var event = new Event('test-output');
20 window.dispatchEvent(event);