archives

« Bugzilla Issues Index

#4211 — 9.4.4.4 [[Set]]: Internal mapped property not updated


9.4.4.4 [[Set]] ( P, V, Receiver)

9.4.4.4 also needs to update the internal mapped property in step 5.

Is 9.4.4.4 only an optimization? If that's the case it should probably be removed.


Test case:
---
(function(a) {
arguments[0] = 2;
Object.defineProperty(arguments, "0", {writable: false});
return arguments[0];
})(1);
---


Expected: Returns 2
Actual: Returns 1


fixed in rev37 editor's draft

It's plausible that 9.4.4.4 could be eliminated. But I don't have time to fully analyze that right now


In Rev37