Your stored value is ok, it is the signature of your Convert method that is
wrong.
It should really work on v8::Handle<v8::Primitive>:
bool MyClass::Convert(v8::Handle<v8::Primitive>& oValue) {
oValue = m_Value;
}
As a rule, use v8::Handle<> instead of a reference or a pointer to v8::Value
Hope this helps,
Dmitry
On Wed, Apr 3, 2013 at 5:45 PM, Mike Moening <[email protected]> wrote:
> The method is basically a Getter(). Has no purpose other than to change
> the Primitive value coming in to another value.
> I need a SetData() and GetData() method to change the underlying
> Persistent Primitive to another Primitive.
>
> If stored value should not be:
>
> v8::Persistent<v8::Primitive> m_Value;
>
> What should it be?
>
> I'm a longtime spidermonkey guy making the move to V8.
> Don't spare the details...
>
> Thanks!
>
> --
> --
> 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/groups/opt_out.
>
>
>
--
--
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/groups/opt_out.