My solution to this was to set the second internal field thing to a pointer
of a global identifier that's used in a special check function.
>
And used as such.
bool checkType(Local<Value> val, std::string* typeString)
{
if(!val->IsObject()) return false;
Handle<External> field =
Handle<External>::Cast(val->ToObject()->GetInternalField(1));
std::string* internalString = static_cast<std::string*>(field->Value());
return internalString == typeString || internalString->find(*typeString) !=
std::string::npos;
}
--
--
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.