Closed
Bug 1318646
Opened 8 years ago
Closed 4 years ago
Promise.prototype should be an ordinary object
Categories
(Core :: JavaScript Engine, defect, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: evilpie, Unassigned)
References
Details
(Keywords: triage-deferred)
Promise.prototype already isn't a Promise instance, but the class name is set to "PromiseProto", we should change that to "Object" so it looks like an ordinary object to JS. Please fix adjust jit-test/tests/basic/plain-object-prototypes[-error].js accordingly afterwards.
Updated•7 years ago
|
Keywords: triage-deferred
Priority: -- → P3
Reporter | ||
Comment 1•4 years ago
|
||
We can't really make our prototype objects "plain objects", because that wouldn't work with JSXray and ClassSpec. However this is now basically unboservable since we removed the Object.prototype.toString fallback in bug 1277801. Only in error messages will expose this like the test in bug 1637078, but that seems like a good thing instead of just using "Object".
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•