Closed Bug 427623 Opened 16 years ago Closed 15 years ago

objectops needs a way to override typeof

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: shaver, Unassigned)

References

(Blocks 1 open bug)

Details

I propose that we add an objectops member which can be used to override the default typeof determination, such as for wrappers that can be callable ("function") or not ("object").  Bug 425139 is an example of such, and it's possible that our variety of XPConnect wrapper classes could benefit from it as well.

I'd have the method return an enum, rather than a string, since typeof extensibility seems undesirable.
Shaver: Did you mean to mark bug 408461 as dependent on this bug?
Let's say...no.  Thanks.
Blocks: 408416
No longer blocks: 408461
Did I say "add an objectops member"?  Questionable instinct there, shaver.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.