Description[builtins] don't create keys for undefined property descriptors in O.gOPDs
Implements the change proposed at https://github.com/tc39/ecma262/pull/593.
In summary, Object.getOwnPropertyDescriptors can produce results which cause
Object.defineProperties() to throw, by inserting a property with an undefined
descriptor into the result object. This change to the algorithm requires that
the descriptor only be added to the result object if it is not undefined.
BUG=v8:4725
R=littledan@chromium.org, adamk@chromium.org, jwolfe@igalia.com
Committed: https://crrev.com/81349869174c76216e69c511396b1c05c826fa5e
Cr-Commit-Position: refs/heads/master@{#37504}
Patch Set 1 #Patch Set 2 : fix test262.status #
Messages
Total messages: 14 (4 generated)
|