more nashorn nonsense

This commit is contained in:
minjaesong
2020-10-28 14:57:50 +09:00
parent 939940e784
commit 664a4ca758
3 changed files with 24 additions and 19 deletions

View File

@@ -272,8 +272,12 @@ if ('function' !== typeof Array.prototype.reduceRight) {
// NOTE TO PROGRAMMERS: this JS_INIT script does not, and must not be invoked with strict mode //
///////////////////////////////////////////////////////////////////////////////////////////////////
// disabling and re-installing JS/Nashorn functions
// alse see: https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extensions
load = undefined;
loadWithNewGlobal = undefined;
exit = undefined;
quit = undefined;
var eval = function(s) { // installing new eval function
return Function('"use strict";return(function(){'+s+'}())')();
}