Fix r18556; tests were missing handlescopes.

BUG=
R=ulan@chromium.org

Review URL: https://codereview.chromium.org/133763005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18560 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
marja@chromium.org 2014-01-13 11:15:06 +00:00
parent 1d4c0532d7
commit e9c8de04da
2 changed files with 5 additions and 0 deletions

View File

@ -14785,6 +14785,7 @@ TEST(PreCompile) {
// a workaround for now to make this test not fail.
v8::V8::Initialize();
v8::Isolate* isolate = CcTest::isolate();
HandleScope handle_scope(isolate);
const char* script = "function foo(a) { return a+1; }";
v8::ScriptData* sd = v8::ScriptData::PreCompile(v8::String::NewFromUtf8(
isolate, script, v8::String::kNormalString, i::StrLength(script)));
@ -14798,6 +14799,7 @@ TEST(PreCompile) {
TEST(PreCompileWithError) {
v8::V8::Initialize();
v8::Isolate* isolate = CcTest::isolate();
HandleScope handle_scope(isolate);
const char* script = "function foo(a) { return 1 * * 2; }";
v8::ScriptData* sd = v8::ScriptData::PreCompile(v8::String::NewFromUtf8(
isolate, script, v8::String::kNormalString, i::StrLength(script)));
@ -14809,6 +14811,7 @@ TEST(PreCompileWithError) {
TEST(Regress31661) {
v8::V8::Initialize();
v8::Isolate* isolate = CcTest::isolate();
HandleScope handle_scope(isolate);
const char* script = " The Definintive Guide";
v8::ScriptData* sd = v8::ScriptData::PreCompile(v8::String::NewFromUtf8(
isolate, script, v8::String::kNormalString, i::StrLength(script)));
@ -14821,6 +14824,7 @@ TEST(Regress31661) {
TEST(PreCompileSerialization) {
v8::V8::Initialize();
v8::Isolate* isolate = CcTest::isolate();
HandleScope handle_scope(isolate);
const char* script = "function foo(a) { return a+1; }";
v8::ScriptData* sd = v8::ScriptData::PreCompile(v8::String::NewFromUtf8(
isolate, script, v8::String::kNormalString, i::StrLength(script)));

View File

@ -108,6 +108,7 @@ TEST(ScanKeywords) {
TEST(ScanHTMLEndComments) {
v8::V8::Initialize();
v8::Isolate* isolate = CcTest::isolate();
v8::HandleScope handles(isolate);
// Regression test. See:
// http://code.google.com/p/chromium/issues/detail?id=53548