1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-21 06:16:43 +00:00

tests use WASM if available

This commit is contained in:
Steven Hugg
2020-07-13 17:15:48 -05:00
parent f5a4844af3
commit e70b8a9749
4 changed files with 10 additions and 8 deletions
+7
View File
@@ -7,6 +7,13 @@ var worker = {};
global.window = global;
global.exports = {};
global.self = global;
global.location = {href:'.'};
global.require = (modname) => {
console.log("REQUIRE",modname);
if (modname == 'path')
return require(modname);
};
global.btoa = require('btoa');
global.atob = require('atob');