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.

"load" fails when calling scripts from command-line

#86

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 script.js results in:

undefined

However, simply running java -jar env-js/dist/env-js.jar and pasting in load('env-js/dist/env.rhino.js'); print(typeof Envjs); results in:

function

I've poured over the test-prototype.sh file (along with others) and it seems I'm not doing anything different than: java -cp env-js.jar org.mozilla.javascript.tools.envjs.Main test.js

I apologize if this is user error in anyway.

Reported by Eric Clemmons · January 13th, 2010 @ 04:58 PM

State: resolved
Milestone: 1.2.x
Assigned to: Thatcher Thatcher

Activity

  1. Eric Clemmons
    Eric Clemmons

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

    Sorry about the fail.

    January 13th, 2010 @ 05:10 PM

  2. Thatcher
    Thatcher
    • State changed from new to resolved
    • Assigned user set to Thatcher
    • Milestone set to 1.2.x

    np, better two heads than none.

    February 3rd, 2010 @ 05:12 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.