Comment #4 on issue 3964 by [email protected]: Object.{getPrototypeOf, getOwnPropertyDescriptor}(non-object) throws TypeError in violation of spec
https://code.google.com/p/v8/issues/detail?id=3964#c4

The following revision refers to this bug:
https://chromium.googlesource.com/v8/v8.git/+/ea463a916bbe5994b0d2d04e8075058b373b2e2c

commit ea463a916bbe5994b0d2d04e8075058b373b2e2c
Author: arv <[email protected]>
Date: Mon Mar 23 08:40:36 2015

[es6] Object.getPrototypeOf should work with values

The final spec for Object.getPrototypeOf calls ToObject on the
parameter, which means that it should only throw for null and
undefined. For other non object values the prototype of the wrapper
should be used.

BUG=v8:3964
LOG=N
R=adamk, [email protected]

Review URL: https://codereview.chromium.org/1014813003

Cr-Commit-Position: refs/heads/master@{#27354}

[modify] http://crrev.com/ea463a916bbe5994b0d2d04e8075058b373b2e2c/src/v8natives.js [modify] http://crrev.com/ea463a916bbe5994b0d2d04e8075058b373b2e2c/test/mjsunit/get-prototype-of.js [modify] http://crrev.com/ea463a916bbe5994b0d2d04e8075058b373b2e2c/test/mjsunit/harmony/set-prototype-of.js [modify] http://crrev.com/ea463a916bbe5994b0d2d04e8075058b373b2e2c/test/test262-es6/test262-es6.status [modify] http://crrev.com/ea463a916bbe5994b0d2d04e8075058b373b2e2c/test/test262/test262.status [modify] http://crrev.com/ea463a916bbe5994b0d2d04e8075058b373b2e2c/test/webkit/prototypes-expected.txt [modify] http://crrev.com/ea463a916bbe5994b0d2d04e8075058b373b2e2c/test/webkit/prototypes.js


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to