diff options
Diffstat (limited to 'JavaScriptCore/yarr')
-rw-r--r-- | JavaScriptCore/yarr/RegexJIT.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/JavaScriptCore/yarr/RegexJIT.cpp b/JavaScriptCore/yarr/RegexJIT.cpp index 68d3803..609417f 100644 --- a/JavaScriptCore/yarr/RegexJIT.cpp +++ b/JavaScriptCore/yarr/RegexJIT.cpp @@ -1489,7 +1489,7 @@ void jitCompileRegex(JSGlobalData* globalData, RegexCodeBlock& jitObject, const return; numSubpatterns = pattern.m_numSubpatterns; - if (!pattern.m_containsBackreferences) { + if (!pattern.m_containsBackreferences && globalData->canUseJIT()) { RegexGenerator generator(pattern); generator.compile(globalData, jitObject); if (!generator.shouldFallBack()) |