Re:Mug: A New JavaScript compiler for the JVM
by noahlt on Monday January 10, 2011 @01:16PM
(#2089219)
One of his strategies (from the README on Github) is "favoring static compilation rather than a runtime interpreter", so I suspect that `eval` is not included in Mug.
However, `apply` is included (cf. test/regression.js line 19). So your example pseudocode could probably be written like this:
for (var i = 1; i <= 10; i++) {
var f = function() {
print("I'm " + i.toString());
};
f();
}
However, `apply` is included (cf. test/regression.js line 19). So your example pseudocode could probably be written like this: