archives

« Bugzilla Issues Index

#3583 — 7.3.2 GetV: Simplify the algorithm


7.3.2 GetV(V, P)

In the current algorithm, either step 1 or step 4 can be deleted (in both steps, an abrupt completion occurs iff V is undefined or null).

But I go further and propose the following equivalent algorithm:

1. Assert: IsPropertyKey(P) is true. (That assertion is found in Get(O, P).)
2. Let O be ToObject(V).
3. ReturnIfAbrupt(O).
4. Return the result of calling the [[Get]] internal method of O passing P and V as the arguments.


fixed in rev32 editor's draft


fixed in rev32 draft