mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-11 07:14:04 +09:00
more nashorn nonsense
This commit is contained in:
@@ -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+'}())')();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user