Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Eric Clemmons's latest activity

Wednesday, January 13 2010
86 "load" fails when calling scripts from command-line was updated in envjs
  • Eric Clemmons
    Eric Clemmons commented at 5:10 PM

    Lighthouse posted two tickets, oddly enough. Solution is in latest.

    Sorry about the fail.

  • Eric Clemmons
    Eric Clemmons created the ticket at 5:01 PM

    Suppose I have a script script.js that consists of:

        load('env-js/dist/env.rhino.js');
        print(typeof Envjs);
    

    Calling java -jar env-js/dist/env-js.jar sc...

87 "load" fails when calling scripts from command-line was updated in envjs
  • Eric Clemmons
    Eric Clemmons commented at 5:09 PM

    Solution:

    I had to turn on Optimization:
    java -cp env-js/dist/env-js.jar org.mozilla.javascript.tools.envjs.Main -opt -1 script.js

  • Eric Clemmons
    Eric Clemmons created the ticket at 5:01 PM

    Suppose I have a script script.js that consists of:

        load('env-js/dist/env.rhino.js');
        print(typeof Envjs);
    

    Calling java -jar env-js/dist/env-js.jar sc...