feat: use dom types and set Proxy global
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import './global'
|
||||
import '@ms/nashorn'
|
||||
import { Proxy } from './proxy'
|
||||
import { XMLHttpRequest } from './xml-http-request'
|
||||
|
||||
let ployfillStartTime = new Date().getTime();
|
||||
@ -13,5 +14,6 @@ Object.defineProperty(String.prototype, 'contains', {
|
||||
// ES6 Map Symbol ployfill
|
||||
require('es6-map/implement');
|
||||
require('es6-symbol/implement');
|
||||
global.setGlobal('Proxy', Proxy)
|
||||
global.setGlobal('XMLHttpRequest', XMLHttpRequest)
|
||||
console.info('Java Nashorn ployfill loading completed... Cost (' + (new Date().getTime() - ployfillStartTime) / 1000 + 's)!');
|
||||
|
Reference in New Issue
Block a user