Closed Bug 6705 Opened 26 years ago Closed 26 years ago

Rhino: eval with var statement inside function

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: norrisboyd, Assigned: norrisboyd)

Details

js> function g() { eval("var x; x++"); } js> g() js: x is not defined
Summary: eval with var statement inside function → Rhino: eval with var statement inside function
QA Contact: 4078 → 4590
Status: NEW → ASSIGNED
Actually, eval is irrelelvant: E:\src\mozilla\js\rhino>js js> var x js> x++ NaN js> quit() E:\src\mozilla\js\rhino>rhino js> var x js> x++ js: x is not defined js> quit()
okay, i wrote a regression test case for this. fwiw, it's not broken in the monkey.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
meant to mark this verified.
You need to log in before you can comment on or make changes to this bug.