Hi, Can somebody help me to understand what is going on. Seems like very trivial thing, but either I'm overheated or one of two :) Why would BooleanValue() and oBoolean()->Value() claim that bool value is true while it should be false? It is has something to do with the fact that var is an object...
Thanks Vlad On Jun 8, 11:09 am, vlad <[email protected]> wrote: > "any = new Boolean(false);" > > v8::Handle<v8::Value> v = g->Get(v8::String::New("any")); > if (v->IsObject()) { > v->BooleanValue() - returns 1 > v->ToBoolean()->Value() - returns 1 > > However > v->ToString() returns 'false' > > > > } -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
