Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 22d5056f8007c4afa1ae0f95cc813d3f22133e6c..f3f238caa965dd9f34904ce514092426256336f1 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -1108,8 +1108,9 @@ enum ParserSyncTestResult { |
kError |
}; |
- |
-void SetParserFlags(i::ParserBase* parser, i::EnumSet<ParserFlag> flags) { |
+template <typename Traits> |
+void SetParserFlags(i::ParserBase<Traits>* parser, |
+ i::EnumSet<ParserFlag> flags) { |
parser->set_allow_lazy(flags.Contains(kAllowLazy)); |
parser->set_allow_natives_syntax(flags.Contains(kAllowNativesSyntax)); |
parser->set_allow_harmony_scoping(flags.Contains(kAllowHarmonyScoping)); |