2020-02-09 14:06:45 +00:00
|
|
|
/// <reference path="./global.ts" />
|
|
|
|
/// <reference types='@ms/nashorn' />
|
2020-01-31 18:44:23 +00:00
|
|
|
let ployfillStartTime = new Date().getTime();
|
|
|
|
console.info('Initialization Java Nashorn ployfill. Please wait...');
|
2020-02-09 14:06:45 +00:00
|
|
|
require('./es5-ext');
|
|
|
|
require('core-js');
|
|
|
|
global.setGlobal('Proxy', require('./proxy').Proxy)
|
|
|
|
global.setGlobal('XMLHttpRequest', require('./xml-http-request').XMLHttpRequest)
|
|
|
|
global.setGlobal('Blob', require('blob-polyfill').Blob)
|
2020-01-31 18:44:23 +00:00
|
|
|
console.info('Java Nashorn ployfill loading completed... Cost (' + (new Date().getTime() - ployfillStartTime) / 1000 + 's)!');
|