I want to be able to interpret or compile Javascript files, catching errors, etc. from Python programs. Javascript Files use the following syntax for ex.:
var a;
function Mul (){
prompt(b);
document.write(a*b);
}
I tried with SpiderMonkey but it seems to be unable to interpret "prompt", "document.write", etc. Help please.