From 91ce5a4ffd1788118d01fd93fa7bdaaf3fd73cd1 Mon Sep 17 00:00:00 2001 From: "whesse@chromium.org" Date: Wed, 7 Jul 2010 11:31:33 +0000 Subject: [PATCH] Test for correct exception message in invalid preparse data test in test-api.cc Review URL: http://codereview.chromium.org/2829049 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5031 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-api.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc index e9d1a75..330ca5b 100644 --- a/test/cctest/test-api.cc +++ b/test/cctest/test-api.cc @@ -8581,14 +8581,25 @@ TEST(PreCompileInvalidPreparseDataError) { // Overwrite function bar's end position with 0. sd_data[kHeaderSize + 1 * kFunctionEntrySize + kFunctionEntryEndOffset] = 0; + v8::TryCatch try_catch; + Local source = String::New(script); Local