There appears to be a bug which causes TryCatch.HasCaught()
to return true after creating a String Value.
Here is the source code:
void v8Test() {
v8::HandleScope handle_scope;
v8::TryCatch try_catch;
LOGD("start, HasCaught()=%d", try_catch.HasCaught());
v8::Handle<v8::Value> mydata(v8::String::New("hello"));
LOGD("after creating mydata, HasCaught()=%d",
try_catch.HasCaught());
if (try_catch.HasCaught()) {
LOGD("HasCaught true");
}
}
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users