Closed
Bug 289294
Opened 20 years ago
Closed 19 years ago
Infinite loop during a script compilation
Categories
(Rhino Graveyard :: Compiler, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: denis, Assigned: igor)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 If I turn the Feature FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME to TRUE like in your example in http://www.mozilla.org/rhino/apidocs/org/mozilla/javascript/ContextFactory.html and i try to compile a script like that: "function window.onload(){....}" Rhino enters in an infinite loop. I used Rhino1.6R1. Reproducible: Always Steps to Reproduce: 1. Take the examples RunScript2 2. Copy/Past the code from http://www.mozilla.org/rhino/apidocs/org/mozilla/javascript/ContextFactory.html in the file named: MyFactory.java 3. Add at the beginning of RunScript2.java the lines: static { // Initialize GlobalFactory with custom factory ContextFactory.initGlobal(new MyFactory()); } 4. Try to execute the following script at the command line: > java RunScript2 "function window.onload(){return 2;}" Actual Results: Infinite loop Expected Results: An exception because it's not ECMA script compatible Or execute the method if you want be like IE
| Assignee | ||
Comment 1•19 years ago
|
||
This has been fixed for some time already.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•