Do not crash if a V8 extension fails to compile or throws an exception
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 25 Nov 2009 16:46:56 +0000 (16:46 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 25 Nov 2009 16:46:56 +0000 (16:46 +0000)
commit7a6ebbdd6d3b7a42bb36518d02da1e80f8ff8411
tree276a3ee25c9663f5a7b2abef81c59cb17d8e2858
parent2af151ee633875dfdb4abf2fa1a5535f78109b0e
Do not crash if a V8 extension fails to compile or throws an exception
when the code is run.

Instead, return an empty context handle so the failure to create a
context can be handled.

BUG=http://crbug.com/28486
Review URL: http://codereview.chromium.org/442005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3364 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/bootstrapper.cc
test/cctest/test-api.cc