mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-14 15:06:05 +09:00
re-impl of js eval function because wtf js
This commit is contained in:
@@ -268,10 +268,15 @@ if ('function' !== typeof Array.prototype.reduceRight) {
|
||||
};
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// NOTE TO PROGRAMMERS: this JS_INIT script does not, and must not be invoked with strict mode //
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
load = undefined
|
||||
loadWithNewGlobal = undefined
|
||||
load = undefined;
|
||||
loadWithNewGlobal = undefined;
|
||||
var eval = function(s) { // installing new eval function
|
||||
return Function('"use strict";return(function(){'+s+'}())')();
|
||||
}
|
||||
//
|
||||
function javaArrayToJs(jarr) {
|
||||
if (!jarr.toString.startsWith("[")) return jarr;
|
||||
|
||||
Reference in New Issue
Block a user