Closed Bug 593043 Opened 15 years ago Closed 6 years ago

java RunScript "..."; does not work

Categories

(Rhino Graveyard :: Core, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INACTIVE

People

(Reporter: bblochl, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 Build Identifier: Rhino 1.7 release 1 2008 08 16 The code line number 53 of RunScript.java (http://mxr.mozilla.org/mozilla/source/js/rhino/examples/RunScript.java) has to be changed from Context cx = Context.enter(); to Context cx = ContextFactory.getGlobal().enterContext(); to compile correctly, because Context.enter() is deprecated. But the example of the Rhino tutorial http://www.mozilla.org/rhino/tutorial.html is still not running with this modified RunScript! js: java RunScript 'Math.cos(Math.PI)'; js: ..............^ js> java Runscript 'function f(x){return x+1} f(7)'; js: "<stdin>", line 16: missing ; before statement js: java Runscript 'function f(x){return x+1} f(7)'; js: ..............^ js> Reproducible: Always

Closing. Bug management is now done here:
https://github.com/mozilla/rhino

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.