v8/samples
antonm@chromium.org 6b4ff18b5b Properly process try/finally blocks.
In some circumstances, try/finally block can actually catch the exception:

function f() {
  try {
    throw 42;
  } finally {
    return 0;
  }
}

Therefore when propagating exception to v8::TryCatch, we must be sure
there is no try/finally blocks as well.

When bulding the messages we should be more conservative and expect that
any v8::TryCatch with no JS try/catch in between can potentionally
be the right exception handler.

Plus various minor refactorings.

BUG=1147
TEST=cctest/test-api/TryCatchAndFinallyHidingException, cctest/test-api/TryCatchAndFinally

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6809 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2011-02-16 11:40:48 +00:00
..
count-hosts.js Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
lineprocessor.cc Mark up debugger support in sample file 2010-04-09 13:02:25 +00:00
process.cc Fix the process sample to actually dispose the contexts used for 2010-11-24 09:21:29 +00:00
samples.gyp Initial attempt to add support for using gyp to build V8 itself 2010-12-14 08:16:39 +00:00
SConscript Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
shell.cc Properly process try/finally blocks. 2011-02-16 11:40:48 +00:00