reverting new js eval impl

This commit is contained in:
minjaesong
2020-10-28 23:42:55 +09:00
parent 29584b7070
commit 5167bf1034
6 changed files with 16 additions and 11 deletions

View File

@@ -278,9 +278,9 @@ load = undefined;
loadWithNewGlobal = undefined;
exit = undefined;
quit = undefined;
var eval = function(s) { // installing new eval function
/*var eval = function(s) { // this impl is flawed; it does not return any, and cannot alter Global which may not you actually want
return Function('"use strict";return(function(){'+s+'}())')();
}
}*/
//
function javaArrayToJs(jarr) {
if (!jarr.toString.startsWith("[")) return jarr;