mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-11 15:24:05 +09:00
reverting new js eval impl
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user