Reviewers: Michael Starzinger, Dmitry Lomov (chromium),
https://codereview.chromium.org/141913002/diff/1/src/v8natives.js
File src/v8natives.js (right):
https://codereview.chromium.org/141913002/diff/1/src/v8natives.js#newcode1020
src/v8natives.js:1020: if (IS_NULL_OR_UNDEFINED(obj) &&
!IS_UNDETECTABLE(obj)) {
The ES6 spec uses CheckObjectCoercible. It comes up in a few places so
maybe we should add new macro for this?
CHECK_OBJECT_COERCIBLE(obj, 'Object.setPrototypeOf')
which would throw the required type error.
Description:
ES6: Implement Object.setPrototypeOf
This just exposes the internal %SetPrototype and adds all the required
type checks as specified.
BUG=v8:2675
LOG=Y
Please review this at https://codereview.chromium.org/141913002/
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+167, -1 lines):
M src/messages.js
M src/v8natives.js
A test/mjsunit/set-prototype-of.js
--
--
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/groups/opt_out.