Error: Attempt to run compile-and-go script on a cleared scope

前端 未结 10 2107
遇见更好的自我
遇见更好的自我 2020-12-02 16:45

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

10条回答
  •  伪装坚强ぢ
    2020-12-02 17:04

    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.

提交回复
热议问题