Since upgrading to Firefox 4.0, I\'ve noticed that I\'m occasionally getting an error in the console stating:
attempt to run compile-and-go script on
In my case, it was document.write
method causing the problem on Firefox 4, 5, 6 on Windows. Linux versions are unaffected. What I had to do is to overwrite document.write
method.
I aware that document.write
shouldn't be used these days, but deployJava.js
, a standard Java Applet deployment script written by Sun/Oracle, is using it. Google is using it in Google AdSense ads. document.write
is everywhere.
I hope this helps. However, I saw lots of "solutions" on the Internet that didn't work for me. It may mean that "Attempt to run compile-and-go script on a cleared scope" is a Firefox JavaScript engine problem/bug.