Hm, I'm not sure that this hack is the right way to approach the problem. It
actually points at a deeper issue with caller poisoning and our implementation
of it, which attempts to fix a hole in the spec (cf.
https://bugs.ecmascript.org/show_bug.cgi?id=310). I sent a mail to es-discuss in
the hope of finding a resolution.

For the time being, I'd suggest simply commenting out the check in
Object.observe, which is not crucial anyway.


https://codereview.chromium.org/11312247/diff/1/src/v8natives.js
File src/v8natives.js (right):

https://codereview.chromium.org/11312247/diff/1/src/v8natives.js#newcode1159
src/v8natives.js:1159: if (IS_SPEC_FUNCTION(obj)) {
IS_FUNCTION probably is more adequate here, since it shouldn't be a
proxy.

https://codereview.chromium.org/11312247/

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to