archives

« Bugzilla Issues Index

#3215 — 7.3.11 SetIntegrityLevel(O, level): [[PreventExtensions]] must be triggered before [[OwnPropertyKeys]]


7.3.11 SetIntegrityLevel(O, level)

Because [[OwnPropertyKeys]] (step 3) is called before [[PreventExtensions]] (step 9), a proxy on which the algorithm is applied could either conceal keys, or add new keys during the algorithm. Thus, even if the final step [[PreventExtensions]] succeeds, the algorithm may have actually failed in its purpose.

In order to prevent that, [[PreventExtensions]] must be called before [[OwnPropertyKeys]]. (Experience with FF Aurora suggests that it is indeed what FF does.)


fixed in rev28 editor's draft


fixed in rev28