Closed
Bug 490339
Opened 14 years ago
Closed 14 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)
2.40 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
246 bytes,
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•14 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•14 years ago
|
Flags: blocking1.9.1?
Hardware: x86 → All
Assignee | ||
Comment 2•14 years ago
|
||
Assignee | ||
Updated•14 years ago
|
Priority: -- → P1
Target Milestone: --- → mozilla1.9.1
Updated•14 years ago
|
Flags: blocking1.9.1? → blocking1.9.1+
Updated•14 years ago
|
Attachment #374814 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 3•14 years ago
|
||
Assignee | ||
Comment 4•14 years ago
|
||
Fixed in tm: http://hg.mozilla.org/tracemonkey/rev/8e72c21ac76e /be
Whiteboard: fixed-in-tracemonkey
Assignee | ||
Comment 5•14 years ago
|
||
Fixed in m-c: http://hg.mozilla.org/mozilla-central/rev/5e3157d1c28c /be
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 6•14 years ago
|
||
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/9dbf7c7654c1
Keywords: fixed1.9.1
You need to log in
before you can comment on or make changes to this bug.
Description
•