Closed Bug 1063802 Opened 10 years ago Closed 9 years ago

Strict-mode assignment to getter-only property inherited from a proxy should be a TypeError

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jorendorff, Unassigned)

Details

baseops::SetPropertyHelper is busted in 37 different ways, due to its making no attempt whatsoever to follow the ES6 MOP. But here's one that seems to be just a plain old bug: load(libdir + "asserts.js"); assertThrowsInstanceOf(function () { "use strict"; Object.create(new Proxy({get p() {}}, {})).x = 0; }, TypeError); The code in baseops::SetPropertyHelper that's supposed to deal with this specific case (assigning to a getter-only property found on a Proxy on the prototype chain) doesn't check for strict mode.
No longer reproducible - Resolving as WFM. js> "use strict"; Object.create(new Proxy({get p() {}}, {})).p = 0; typein:1:15 TypeError: setting a property that has only a getter
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.