Make exception thrown via v8 public API propagate to v8::TryCatch as JS thrown except...
authorantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 18 Mar 2011 12:33:19 +0000 (12:33 +0000)
committerantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 18 Mar 2011 12:33:19 +0000 (12:33 +0000)
commit4722f692e421a96a17db3de77e04f631b896121d
tree3a9aa422bb235dfd43d071cd90b52e770490a962
parent0f496238e4e3b6b98bf6ccad8e1cec0fb71e1390
Make exception thrown via v8 public API propagate to v8::TryCatch as JS thrown exceptions do.

Correctly process failures which can be returned by Object::GetProperty
when performing GetRealNamedProperty* queries.

Callback properties can produce exceptions so we need to wrap access to them
into exception checks.  However, despite of many other methods with exception
checks, property access doesn't mandatroy go via JavaScript and hence we
need to inject code to propagate exception to public API TryCatch handlers.

Review URL: http://codereview.chromium.org/6397011

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7258 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/api.cc
src/handles.cc
src/handles.h
src/messages.cc
src/top.cc
src/top.h
test/cctest/test-api.cc