feat: define XMLHttpRequest

Signed-off-by: MiaoWoo <admin@yumc.pw>
dev
MiaoWoo 2019-09-27 18:41:26 +08:00
parent c859605738
commit 31351fc393
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@
throw new Error('Internal engine system not allow use `load` function!');
};
// Init console and require
global.XMLHttpRequest = undefined;
global.console = engineLoad(global.root + '/core/console.js')(logger);
global.require = engineLoad(global.root + '/core/require.js')(root);
// String contains ployfill