Files
nuki_hub/components/espressif__libsodium/libsodium/test/default/pre.js.inc
iranl b673fb4d5c Add and remove libs and components for Arduino Core 3 (#400)
* Add and remove libs and components for Arduino Core 3

* Add back NimBLE-Arduino in resources
2024-06-20 23:34:49 +07:00

23 lines
563 B
PHP

try {
this['Module'] = Module;
Module.test;
} catch(e) {
this['Module'] = Module = {};
}
if (typeof process === 'object') {
if (typeof(FS) === 'object') {
Module['preRun'] = Module['preRun'] || [];
Module['preRun'].push(function() {
FS.init();
FS.mkdir('/test-data');
FS.mount(NODEFS, { root: '.' }, '/test-data');
});
}
} else {
Module['print'] = function(x) {
var event = new Event('test-output');
event.data = x;
window.dispatchEvent(event);
};
}