Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index a884d773b1b667199b762deb1d805d6e7f6dd7e8..fddd000289ce6a1a266499e5a7eb7607a1a482f5 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -4892,6 +4892,7 @@ TEST(DebugBreakInMessageHandler) { |
} |
+#ifdef V8_NATIVE_REGEXP |
// Debug event handler which gets the function on the top frame and schedules a |
// break a number of times. |
static void DebugEventDebugBreak( |
@@ -4928,11 +4929,10 @@ static void DebugEventDebugBreak( |
TEST(RegExpDebugBreak) { |
+ // This test only applies to native regexps. |
v8::HandleScope scope; |
DebugLocalContext env; |
- i::FLAG_regexp_native = true; |
- |
// Create a function for checking the function when hitting a break point. |
frame_function_name = CompileFunction(&env, |
frame_function_name_source, |
@@ -4957,6 +4957,7 @@ TEST(RegExpDebugBreak) { |
CHECK_EQ(20, break_point_hit_count); |
CHECK_EQ("exec", last_function_hit); |
} |
+#endif // V8_NATIVE_REGEXP |
// Common part of EvalContextData and NestedBreakEventContextData tests. |