Closed
Bug 1255495
Opened 8 years ago
Closed 4 years ago
Bad error behavior when using a function proxy
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: evilpie, Unassigned)
References
(Blocks 1 open bug)
Details
Consider this code `new (new Proxy(Math.sin, {}))`. This should throw, because the function (and thus the proxy) is not constructable. However in certain cases we invoke ValueToSource on the proxy, which yields a different error: Function.prototype.toString called on incompatible object.
Reporter | ||
Comment 1•4 years ago
|
||
> new (new Proxy(Math.sin, {}))
TypeError: (new Proxy(...)) is not a constructor
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•