Closed Bug 309029 Opened 19 years ago Closed 19 years ago

Exception when evaluating recursive function

Categories

(Rhino Graveyard :: Core, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: udittmer, Assigned: igor)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/312.5 (KHTML, like Gecko) Safari/312.3
Build Identifier: 

The attached program defines a recursive JS function and tries to invoke it from within a Scope. It runs 
fine with Rhino 1.5R5, but fails with 1.6R2 with:
Exception in thread "main" org.mozilla.javascript.EcmaError:
	ReferenceError: "addOne" is not defined. (addOne#1)


Reproducible: Always

Steps to Reproduce:
Attached patch Fix β€” β€” Splinter Review
Sometime during 1.6R1 development the parser/code generator started to forget
that they were called from Context.compileFunction.
I committed the fix.
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.

Attachment

General

Creator:
Created:
Updated:
Size: