From 31351fc3938fe74aa148c91b6d597bedc81d372b Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Fri, 27 Sep 2019 18:41:26 +0800 Subject: [PATCH] feat: define XMLHttpRequest Signed-off-by: MiaoWoo --- src/main/resources/core/ployfill.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/core/ployfill.js b/src/main/resources/core/ployfill.js index 0684b8a..2ae3719 100644 --- a/src/main/resources/core/ployfill.js +++ b/src/main/resources/core/ployfill.js @@ -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