Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index d8e2aaed6cfe22f22018c64a2a66593d7433e8e1..ead5ee94de8e637255f91c014b7988c45ae6fb60 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -226,6 +226,9 @@ class ScriptResource : public v8::String::ExternalOneByteStringResource { |
TEST(UsingCachedData) { |
+ // Producing cached parser data while parsing eagerly is not supported. |
+ if (!i::FLAG_lazy || i::FLAG_ignition) return; |
+ |
v8::Isolate* isolate = CcTest::isolate(); |
v8::HandleScope handles(isolate); |
v8::Local<v8::Context> context = v8::Context::New(isolate); |
@@ -276,6 +279,9 @@ TEST(UsingCachedData) { |
TEST(PreparseFunctionDataIsUsed) { |
+ // Producing cached parser data while parsing eagerly is not supported. |
+ if (!i::FLAG_lazy || i::FLAG_ignition) return; |
+ |
// This tests that we actually do use the function data generated by the |
// preparser. |
@@ -3264,6 +3270,9 @@ TEST(FuncNameInferrerEscaped) { |
TEST(RegressionLazyFunctionWithErrorWithArg) { |
+ // Test only applies when lazy parsing. |
+ if (!i::FLAG_lazy || i::FLAG_ignition) return; |
+ |
// The bug occurred when a lazy function had an error which requires a |
// parameter (such as "unknown label" here). The error message was processed |
// before the AstValueFactory containing the error message string was |