Closed Bug 546886 Opened 14 years ago Closed 14 years ago

TM: remove scary live connect crap from call path

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gal, Assigned: gal)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

/*
         * XXX this makes no sense -- why convert to function if clasp->call?
         * XXX better to call that hook without converting
         *
         * FIXME bug 408416: try converting to function, for API compatibility
         * if there is a call op defined.
         */
        if ((ops == &js_ObjectOps) ? clasp->call : ops->call) {
            ok = clasp->convert(cx, funobj, JSTYPE_FUNCTION, &v);
            if (!ok)
                goto out2;

            if (VALUE_IS_FUNCTION(cx, v)) {
                /* Make vp refer to funobj to keep it available as argv[-2]. */
                *vp = v;
                funobj = JSVAL_TO_OBJECT(v);
                parent = OBJ_GET_PARENT(cx, funobj);
                goto have_fun;
            }
        }
Mike, what is the chance that we will need liveconnect for 1.9.3?
Attached patch patchSplinter Review
Assignee: general → gal
Attachment #427563 - Flags: review?(brendan)
Comment on attachment 427563 [details] [diff] [review]
patch

Bet this breaks LiveConnect, or once would have. Let's find out, on tm and m-c.

/be
Attachment #427563 - Flags: review?(brendan) → review+
Blah, forgot to quote the bug # in the commit.

http://hg.mozilla.org/tracemonkey/rev/a4df44da864c
Whiteboard: fixed-in-tracemonkey
This caused ecma/GlobalObject/15.1-2-n.js to crash.

regression changeset: 38099:a4df44da864c user: Andreas Gal <gal@mozilla.com> date: Fri Feb 19 17:31:44 2010 -0800 summary: Remove LiveConnect kludge from call path (1.9.3 will not have LiveConnect according to jst, r=brendan).
Depends on: 547483
http://hg.mozilla.org/mozilla-central/rev/a4df44da864c
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: