So if i understand correctly, in order to obtain the underlying value of a BooleanObject, i need to first cast the Value to BooleanObject and then call BooleanValue()
Do we need to perform the same casting from Value to NumberObject and StringObject to correctly obtain the underlying value ? Local<Value> false_value = BooleanObject::New(false);Local<BooleanObject> false_boolean_object = false_value.As<BooleanObject>();bool false_bool = false_boolean_object->BooleanValue(); // = false Local<Value> true_value = BooleanObject::New(true);Local<BooleanObject> true_boolean_object = true_value.As<BooleanObject>();bool true_bool = true_boolean_object->BooleanValue(); // = true Thank you for the unit tests, that cleared out the but i think for the primitive_true test it is just a copy of the primitive_false test. + Local<Value> primitive_true = Boolean::New(true);+ CHECK(primitive_true->IsBoolean());+ CHECK(!primitive_true->IsBooleanObject());+ CHECK(primitive_true->BooleanValue());+ CHECK(primitive_true->IsTrue());+ CHECK(!primitive_true->IsFalse()); -- -- v8-users mailing list v8-users@googlegroups.com 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 v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.