diff --git a/whalesong/js/js-impl.js b/whalesong/js/js-impl.js index 13ee4c2..00c69fd 100644 --- a/whalesong/js/js-impl.js +++ b/whalesong/js/js-impl.js @@ -88,11 +88,11 @@ EXPORTS['js-eval'] = makePrimitiveProcedure( - 'myalert', + 'js-eval', 1, function(MACHINE) { var elt = MACHINE.e[MACHINE.e.length - 1]; - var obj = eval('(' + String(elt) + ')'); + var obj = (0,eval)('(' + String(elt) + ')'); return obj; });