#include <v8.h>
using namespace v8;
int main()
{
Isolate* isolate = Isolate::GetCurrent();
HandleScope handleScope(isolate);
Handle<Context> context = Context::New(isolate);
Context::Scope context_scope(context);
Handle<Script> script = Script::Compile(String::New("function Person() {}"));
script->Run();
Handle<Value> person = context->Global()->Get(String::New("Person"));
printf("%s\n", person->IsFunction() ? "true" : "false");
printf("%s\n", person->IsObject() ? "true" : "false");
return 0;
}