Closed
Bug 490339
Opened 16 years ago
Closed 16 years ago
Unexpected ReferenceError when using "new Function()"
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla1.9.1
People
(Reporter: soubok, Assigned: brendan)
References
Details
(Keywords: fixed1.9.1, Whiteboard: fixed-in-tracemonkey)
Attachments
(2 files)
(deleted),
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
(deleted),
text/plain
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9
Build Identifier: mozilla-central-ea128fc02710
The following script throw a ReferenceError when foo() is called.
function B( c ) {
c();
}
var foo = new Function("\
var a = {};\
function C() {\
return function() {\
return a;\
}\
}\
B( C() );\
");
foo(); // ReferenceError: a is not defined
Reproducible: Always
Comment 1•16 years ago
|
||
confirmed on 1.9.1 and later but not on 1.9.0 or earlier.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Version: unspecified → Trunk
Updated•16 years ago
|
Flags: blocking1.9.1?
Hardware: x86 → All
Assignee | ||
Comment 2•16 years ago
|
||
Assignee | ||
Updated•16 years ago
|
Priority: -- → P1
Target Milestone: --- → mozilla1.9.1
Updated•16 years ago
|
Flags: blocking1.9.1? → blocking1.9.1+
Updated•16 years ago
|
Attachment #374814 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 3•16 years ago
|
||
Assignee | ||
Comment 4•16 years ago
|
||
Fixed in tm:
http://hg.mozilla.org/tracemonkey/rev/8e72c21ac76e
/be
Whiteboard: fixed-in-tracemonkey
Assignee | ||
Comment 5•16 years ago
|
||
Fixed in m-c:
http://hg.mozilla.org/mozilla-central/rev/5e3157d1c28c
/be
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 6•15 years ago
|
||
Keywords: fixed1.9.1
You need to log in
before you can comment on or make changes to this bug.
Description
•