Status: New
Owner: ----

New issue 1330 by [email protected]: Throwing an exception in a property handler causes crash when called from native code
http://code.google.com/p/v8/issues/detail?id=1330

Handle<Value> getter(Local<String> property, const AccessorInfo& info) {
  return ThrowException(String::New("Error"));
}

Handle<ObjectTemplate> ot = ObjectTemplate::New();
ot->SetNamedPropertyHandler(getter);
Handle<Object> obj = ot->NewInstance();
obj->Get("foo"); // CRASH!

The crash occurs on all handlers (get, set, delete, ...) for both named and indexed handlers.

The interesting thing is that if you evaluate "obj['foo'];" the exception is successfully thrown.


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to