Sun, 04 Apr 2010 21:08:23 +0100
Style fix
lvm.js | file | annotate | diff | comparison | revisions |
--- a/lvm.js Sun Apr 04 21:02:16 2010 +0100 +++ b/lvm.js Sun Apr 04 21:08:23 2010 +0100 @@ -47,12 +47,10 @@ var print; if(typeof(document) == "object") - print = function (a) { document.write(a+"<br/>") }; + print = function (a) { document.write(a+"<br/>") }; // Browser else -{ - // Assume running under Nodejs - print = require("sys").puts; -} + print = require("sys").puts; // Nodejs + default_environment.setIndex(LValueFromString("print"), LValueFromFunction(print)); function LFunction()