Closed Bug 604108 Opened 14 years ago Closed 14 years ago

function namespace object has the same bug as the anyname object.

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mrbkap, Assigned: mrbkap)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

static void
 namespace_finalize(JSContext *cx, JSObject *obj)
 {
    if (cx->compartment->functionNamespaceObject == obj)
        cx->compartment->functionNamespaceObject = NULL;
 }

that needs to use obj->compartment()...
Attached patch FixSplinter Review
Assignee: general → mrbkap
Status: NEW → ASSIGNED
Attachment #482914 - Flags: review?(peterv)
Attachment #482914 - Flags: review?(peterv) → review+
We do hit the e4x namespace finalize hook a bunch during make crashtest!
http://hg.mozilla.org/mozilla-central/rev/1db0e2f9e891
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.