archives

« Bugzilla Issues Index

#3276 — 19.1.2.1: 'keysArray' and 'from' not defined


In 19.1.2.1 "Object.assign ( target, ...sources )",
step 5.b.iv says:
ReturnIfAbrupt(keysArray).
but 'keysArray' is not defined.
Change to 'keys'.

Also, step 5.d.i says:
Let /desc/ be the result of calling the [[GetOwnProperty]] internal method
of /from/ with argument /nextKey/.
but 'from' is not defined.


fixed in rev28 editor's draft

fixed 5.b.1v

from is defined in 5.b.i and 5.d.i is only reachable if 5.b.i has been evaluated


(In reply to Allen Wirfs-Brock from comment #1)
>
> from is defined in 5.b.i and 5.d.i is only reachable if 5.b.i has been
> evaluated

Ah, right. When 'from' is not defined, 'keys' is necessarily an empty List, so the body of 5.d isn't executed.


fixed in rev28