Closed
Bug 6705
Opened 26 years ago
Closed 26 years ago
Rhino: eval with var statement inside function
Categories
(Core :: JavaScript Engine, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: norrisboyd, Assigned: norrisboyd)
Details
js> function g() { eval("var x; x++"); }
js> g()
js: x is not defined
Assignee | ||
Updated•26 years ago
|
Summary: eval with var statement inside function → Rhino: eval with var statement inside function
Assignee | ||
Updated•26 years ago
|
QA Contact: 4078 → 4590
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•26 years ago
|
||
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.
Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•