Closed
Bug 881677
Opened 12 years ago
Closed 9 years ago
Wrong value decompilation in indirect proxies error messages
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: till, Unassigned)
Details
STR:
execute the following code in the shell:
Proxy.create({})[0];
Actual result:
"TypeError: Proxy.create(...) is not a function"
Expected result:
At the very least, "TypeError: 0 is not a function" or similar. It looks like we're decompiling the value preceding the one we should.
Ideally, though, the error would say what's actually going on: the proxy didn't define a [[Get]] trap, so all [[Get]]s fail.
This might not be too important, given that we want to retire the indirect proxies API at some point. OTOH, that point might be somewhat far off, because web.
Comment 1•12 years ago
|
||
Is this basically the same as bug 862852?
| Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Comment 2•9 years ago
|
||
Proxy.create was removed in bug 892903.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•