Closed Bug 806299 Opened 12 years ago Closed 9 years ago

Harmony proxies: can't return {configurable:true} from traps

Categories

(Core :: JavaScript Engine, defect)

18 Branch
x86
Linux
defect
Not set
normal

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)
Blocks: 703537
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.
I believe this may be a duplicate of bug 793210.
See Also: → 793210
See Also: → 795903
Assignee: general → nobody
This was probably bug Bug 978238.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.