In this documentation:
http://code.google.com/intl/sk-SK/apis/v8/embed.html
In the "Exceptions" paragraph, there is following code:
TryCatch trycatch;
Handle v = script->Run();
if (v.IsEmpty()) {
Handle<value> exception = trycatch.Exception();
String::AsciiValue exception_str(exception);
printf("Exception: %s\n", *exception_str);
// ...
}
I think in line:
Handle<value> exception = trycatch.Exception();
There should be "Value" instead of "value", like this:
Handle<Value> exception = trycatch.Exception();
Otherwise it won't compile (Ubuntu 10.04).
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users