Closed Bug 384642 Opened 18 years ago Closed 18 years ago

remove __callee__ from Call objects, or fix its prototype leak hazard

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: brendan, Assigned: brendan)

References

Details

Attachments

(1 file)

Summary says it all. In light of JS2/ES4 with its stack inspection stuff we would rather do away with __callee__, but it might be used enough that we'll keep it, at least until Mozilla 2. Anyone with knowledge of uses in our tree or addons, please pipe up. /be
See http://developer.mozilla.org/es4/proposals/stack_inspection.html for the ES4 stack reflection proposal. /be
Attached patch fixSplinter Review
__callee__ was silly, it did not work unless the function containing it was heavyweight (scoped by a call object), so it could end up binding to some outer function call's callee. This patch removes it. Igor likes removal of code, so I hope to get fast r+ ;-). /be
Attachment #268728 - Flags: review?(igor)
Comment on attachment 268728 [details] [diff] [review] fix I indeed like the patches mostly with minuses.
Attachment #268728 - Flags: review?(igor) → review+
Fixed on trunk: js/src/jsfun.c 3.189 /be
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: