Closed Bug 1635582 Opened 5 years ago Closed 5 years ago

Figure out what do with InterfaceObjectToString / DOMIfaceAndProtoJSClass::mToString

Categories

(Core :: DOM: Bindings (WebIDL), task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: evilpie, Assigned: evilpie)

References

Details

Attachments

(1 file)

InterfaceObjectToString is invoked by the JS engine when someone calls Function.prototype.toString on a DOM object with that hook. This will return DOMIfaceAndProtoJSClass::mToString. InterfaceObjectToString is defined in sInterfaceObjectClassObjectOps.

So I think this means mToString defined for sPrototypeClass, not sInterfaceObjectClass, is probably just never used and wasted memory?
I am not sure yet if we could change the interface case as well.

Severity: -- → N/A
Priority: -- → P2
Assignee: nobody → evilpies
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/645982b2882a Use DOMIfaceAndProtoJSClass::mToString only for interface objects. r=peterv
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: