Closed
Bug 806299
Opened 13 years ago
Closed 10 years ago
Harmony proxies: can't return {configurable:true} from traps
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bruant.d, Unassigned)
References
Details
Test case:
var p = new Proxy({}, {
getOwnPropertyDescriptor: function(target, name){
return {configurable: true};
}
});
Object.getOwnPropertyDescriptor(p, 'a');
Expected result:
{value: undefined, writable: false, enumerable: false, configurable: true}
Actual result:
Error thrown with inaccurate message: "proxy can't report a new property on a non-extensible object" (while the target is actually extensible)
| Reporter | ||
Comment 1•13 years ago
|
||
For the record, the title is a bit inaccurate. I've seen this message also when trying {configurable: false} and {event: true, configurable: false}. Both of these cases should fail (because the property is not non-configurable on the target), but with a different error message. I'm assuming fixing the bug with configurable:true will fix it for these cases too.
| Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Comment 3•10 years ago
|
||
This was probably bug Bug 978238.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•