Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 96a181d7a54002bcac03bfc29fba2045b0588e47..06d398500d35043131f0d4ac295e38848877ea8c 100755 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -134,6 +134,8 @@ TEST(KeywordMatcher) { |
TEST(ScanHTMLEndComments) { |
+ v8::V8::Initialize(); |
+ |
// Regression test. See: |
// http://code.google.com/p/chromium/issues/detail?id=53548 |
// Tests that --> is correctly interpreted as comment-to-end-of-line if there |
@@ -263,6 +265,8 @@ TEST(Preparsing) { |
TEST(StandAlonePreParser) { |
+ v8::V8::Initialize(); |
+ |
int marker; |
i::Isolate::Current()->stack_guard()->SetStackLimit( |
reinterpret_cast<uintptr_t>(&marker) - 128 * 1024); |
@@ -299,6 +303,8 @@ TEST(StandAlonePreParser) { |
TEST(RegressChromium62639) { |
+ v8::V8::Initialize(); |
+ |
int marker; |
i::Isolate::Current()->stack_guard()->SetStackLimit( |
reinterpret_cast<uintptr_t>(&marker) - 128 * 1024); |
@@ -320,6 +326,8 @@ TEST(RegressChromium62639) { |
TEST(Regress928) { |
+ v8::V8::Initialize(); |
+ |
// Preparsing didn't consider the catch clause of a try statement |
// as with-content, which made it assume that a function inside |
// the block could be lazily compiled, and an extra, unexpected, |
@@ -360,6 +368,8 @@ TEST(Regress928) { |
TEST(PreParseOverflow) { |
+ v8::V8::Initialize(); |
+ |
int marker; |
i::Isolate::Current()->stack_guard()->SetStackLimit( |
reinterpret_cast<uintptr_t>(&marker) - 128 * 1024); |
@@ -610,6 +620,8 @@ void TestStreamScanner(i::UC16CharacterStream* stream, |
} |
TEST(StreamScanner) { |
+ v8::V8::Initialize(); |
+ |
const char* str1 = "{ foo get for : */ <- \n\n /*foo*/ bib"; |
i::Utf8ToUC16CharacterStream stream1(reinterpret_cast<const i::byte*>(str1), |
static_cast<unsigned>(strlen(str1))); |
@@ -690,6 +702,8 @@ void TestScanRegExp(const char* re_source, const char* expected) { |
TEST(RegExpScanning) { |
+ v8::V8::Initialize(); |
+ |
// RegExp token with added garbage at the end. The scanner should only |
// scan the RegExp until the terminating slash just before "flipperwald". |
TestScanRegExp("/b/flipperwald", "b"); |