Commit e9c8de04 authored by marja@chromium.org's avatar marja@chromium.org

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
parent 1d4c0532
...@@ -14785,6 +14785,7 @@ TEST(PreCompile) { ...@@ -14785,6 +14785,7 @@ TEST(PreCompile) {
// a workaround for now to make this test not fail. // a workaround for now to make this test not fail.
v8::V8::Initialize(); v8::V8::Initialize();
v8::Isolate* isolate = CcTest::isolate(); v8::Isolate* isolate = CcTest::isolate();
HandleScope handle_scope(isolate);
const char* script = "function foo(a) { return a+1; }"; const char* script = "function foo(a) { return a+1; }";
v8::ScriptData* sd = v8::ScriptData::PreCompile(v8::String::NewFromUtf8( v8::ScriptData* sd = v8::ScriptData::PreCompile(v8::String::NewFromUtf8(
isolate, script, v8::String::kNormalString, i::StrLength(script))); isolate, script, v8::String::kNormalString, i::StrLength(script)));
...@@ -14798,6 +14799,7 @@ TEST(PreCompile) { ...@@ -14798,6 +14799,7 @@ TEST(PreCompile) {
TEST(PreCompileWithError) { TEST(PreCompileWithError) {
v8::V8::Initialize(); v8::V8::Initialize();
v8::Isolate* isolate = CcTest::isolate(); v8::Isolate* isolate = CcTest::isolate();
HandleScope handle_scope(isolate);
const char* script = "function foo(a) { return 1 * * 2; }"; const char* script = "function foo(a) { return 1 * * 2; }";
v8::ScriptData* sd = v8::ScriptData::PreCompile(v8::String::NewFromUtf8( v8::ScriptData* sd = v8::ScriptData::PreCompile(v8::String::NewFromUtf8(
isolate, script, v8::String::kNormalString, i::StrLength(script))); isolate, script, v8::String::kNormalString, i::StrLength(script)));
...@@ -14809,6 +14811,7 @@ TEST(PreCompileWithError) { ...@@ -14809,6 +14811,7 @@ TEST(PreCompileWithError) {
TEST(Regress31661) { TEST(Regress31661) {
v8::V8::Initialize(); v8::V8::Initialize();
v8::Isolate* isolate = CcTest::isolate(); v8::Isolate* isolate = CcTest::isolate();
HandleScope handle_scope(isolate);
const char* script = " The Definintive Guide"; const char* script = " The Definintive Guide";
v8::ScriptData* sd = v8::ScriptData::PreCompile(v8::String::NewFromUtf8( v8::ScriptData* sd = v8::ScriptData::PreCompile(v8::String::NewFromUtf8(
isolate, script, v8::String::kNormalString, i::StrLength(script))); isolate, script, v8::String::kNormalString, i::StrLength(script)));
...@@ -14821,6 +14824,7 @@ TEST(Regress31661) { ...@@ -14821,6 +14824,7 @@ TEST(Regress31661) {
TEST(PreCompileSerialization) { TEST(PreCompileSerialization) {
v8::V8::Initialize(); v8::V8::Initialize();
v8::Isolate* isolate = CcTest::isolate(); v8::Isolate* isolate = CcTest::isolate();
HandleScope handle_scope(isolate);
const char* script = "function foo(a) { return a+1; }"; const char* script = "function foo(a) { return a+1; }";
v8::ScriptData* sd = v8::ScriptData::PreCompile(v8::String::NewFromUtf8( v8::ScriptData* sd = v8::ScriptData::PreCompile(v8::String::NewFromUtf8(
isolate, script, v8::String::kNormalString, i::StrLength(script))); isolate, script, v8::String::kNormalString, i::StrLength(script)));
......
...@@ -108,6 +108,7 @@ TEST(ScanKeywords) { ...@@ -108,6 +108,7 @@ TEST(ScanKeywords) {
TEST(ScanHTMLEndComments) { TEST(ScanHTMLEndComments) {
v8::V8::Initialize(); v8::V8::Initialize();
v8::Isolate* isolate = CcTest::isolate(); v8::Isolate* isolate = CcTest::isolate();
v8::HandleScope handles(isolate);
// Regression test. See: // Regression test. See:
// http://code.google.com/p/chromium/issues/detail?id=53548 // http://code.google.com/p/chromium/issues/detail?id=53548
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment