Hi Anton,
I am not sure if this helps, but the "test-api.cc" contains this
interesting code sample:
v8::Locker nested_locker;
v8::HandleScope scope;
v8::Handle<Value> exception;
{ v8::TryCatch try_catch;
v8::Handle<Value> value = CompileRun(code);
CHECK(value.IsEmpty());
CHECK(try_catch.HasCaught());
// Make sure to wrap the exception in a new handle because
// the handle returned from the TryCatch is destroyed
// when the TryCatch is destroyed.
exception = Local<Value>::New(try_catch.Exception());
}
return v8::ThrowException(exception);
So maybe you can try wrapping your exception in a similar way prior to
re-throwing it?
Ondrej
2009/2/13 Anton Korenyushkin <
koreny...@gmail.com>: