Remove hasInstance class hooks.
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox100 | --- | fixed |
People
(Reporter: mrrrgn, Assigned: jandem)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 3•3 years ago
|
||
We can instead rely on the default behavior for instanceof in JS::OrdinaryHasInstance.
This works because these objects are callable (since the JSClass has a call-hook) and
they have a .prototype property that returns the value in the proto slot.
| Assignee | ||
Comment 4•3 years ago
|
||
Depends on D141342
| Assignee | ||
Comment 5•3 years ago
|
||
Resolve a Symbol.hasInstance native function that works like the class hook.
Depends on D141343
| Assignee | ||
Comment 6•3 years ago
|
||
This can be changed more later on, but for now this ensures no change in behavior.
Depends on D141344
| Assignee | ||
Comment 7•3 years ago
|
||
Code should use Symbol.hasInstance to customize instanceof behavior.
Depends on D141345
Comment 10•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/910c5efb495b
https://hg.mozilla.org/mozilla-central/rev/261afd35a438
https://hg.mozilla.org/mozilla-central/rev/18c2025ccfab
https://hg.mozilla.org/mozilla-central/rev/31122b75a592
https://hg.mozilla.org/mozilla-central/rev/cb11b00621a2
Description
•