diff --git a/js/src/vm/RegExpObject.cpp b/js/src/vm/RegExpObject.cpp index 0f9933260c3..8a65542b543 100644 --- a/js/src/vm/RegExpObject.cpp +++ b/js/src/vm/RegExpObject.cpp @@ -424,8 +424,8 @@ AppendEscapedLineTerminator(StringBuffer &sb, const char16_t c) return true; } -static template -MOZ_ALWAYS_INLINE bool +template +static MOZ_ALWAYS_INLINE bool SetupBuffer(StringBuffer &sb, const CharT *oldChars, size_t oldLen, const CharT *it) { if (mozilla::IsSame::value && !sb.ensureTwoByteChars())