rhino shell load() function does not load multiple files.

UNCONFIRMED
Unassigned

Status

--
major
UNCONFIRMED
9 years ago
9 years ago

People

(Reporter: dnozay, Unassigned)

Tracking

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.6) Gecko/20091216 Fedora/3.5.6-1.fc11 Firefox/3.5.6
Build Identifier: Rhino 1.7 release 0.6.r2.fc11 2009 06 01

The shell load function does not work with multiple files on my system.

---------------------------------------------------------------------
load(["foo.js", ...])  Load JavaScript source files named by 
                       string arguments. 
---------------------------------------------------------------------


Reproducible: Always

Steps to Reproduce:
1. touch a.js b.js

2. java org.mozilla.javascript.tools.shell.Main << EOF
load(['a.js']);
load(['b.js']);
load(['a.js', 'b.js'])
EOF

3. boom.
Actual Results:  
Rhino 1.7 release 0.6.r2.fc11 2009 06 01
js> js> js> js: "<stdin>", line 4: Couldn't read source file "a.js,b.js: a.js,b.js (No such file or directory)".
js> 

Expected Results:  
Rhino 1.7 release 0.6.r2.fc11 2009 06 01
js> js> js> js> 


note: load calls processFile but not processFiles?
You need to log in before you can comment on or make changes to this bug.