On Sun, May 10, 2015 at 1:41 AM, Francisco Tolmasky <[email protected]> wrote:
> I have something along these lines:
>
> Local<Object> arrayPrototype = //... Array.prototype from script
> Local<Array> array = // array I create in C++
>
> I then do the following:
>
> arrayPrototype->StrictEquals(array->GetPrototype())
>
> and I get false. Is this expected? [].proto certainly === another []'s
> photo.
>
> Thanks,
>
> Francisco

Are you using multiple contexts (i.e. v8::Context instances) in your
application?  Prototype objects from different contexts won't compare
equal.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" 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