"load" fails when calling scripts from command-line
Reported by Eric Clemmons | January 13th, 2010 @ 04:58 PM | in 1.2.x
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.
Comments and changes to this ticket
-
Eric Clemmons January 13th, 2010 @ 05:10 PM
Lighthouse posted two tickets, oddly enough. Solution is in latest.
Sorry about the fail.
-
Thatcher February 3rd, 2010 @ 05:12 PM
- State changed from new to resolved
- Assigned user set to Thatcher
- Milestone set to 1.2.x
np, better two heads than none.
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
a javascript browser environment