Closed Bug 384396 Opened 17 years ago Closed 9 years ago

Deprecating JSObject** objp parameter in JS_GetMethodById and JS_GetMethod

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: igor, Unassigned)

Details

[This is a spin-off of bug 349326 comment 19]

With the bug 373082 fixed, JS_GetMethodById and JS_GetMethod always set on return their objp parameter to the passed object since E4X method lookup no longer affects |this| argument passed to the method. Since even in es4 this fundamental property continues to hold, I suggest either to deprecate these API and provide alternative methods or at least to allow to pass NULL as objp arguments there.
These are new enough APIs that we could change them, I think. It's not what we have done historically, but it will help loosen up the API a bit for ActionMonkey (Tamarin integration), which will probably change a few (not too many) other (and likely more recent or never as frozen) APIs.

/be
Assignee: igor → general
Assignee: general → nobody
JS_GetMethodById and JS_GetMethod was removed in http://hg.mozilla.org/mozilla-central/rev/7f6765e6e3be
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.