feat: define XMLHttpRequest

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2019-09-27 18:41:26 +08:00
parent c859605738
commit 31351fc393

View File

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