more indirect eval stuff

This commit is contained in:
Danny Yoo 2013-03-07 13:24:50 -07:00
parent 20a77d7937
commit c287b81286

View File

@ -88,11 +88,11 @@
EXPORTS['js-eval'] = EXPORTS['js-eval'] =
makePrimitiveProcedure( makePrimitiveProcedure(
'myalert', 'js-eval',
1, 1,
function(MACHINE) { function(MACHINE) {
var elt = MACHINE.e[MACHINE.e.length - 1]; var elt = MACHINE.e[MACHINE.e.length - 1];
var obj = eval('(' + String(elt) + ')'); var obj = (0,eval)('(' + String(elt) + ')');
return obj; return obj;
}); });