diff --git a/js/src/vm/RegExpObject.cpp b/js/src/vm/RegExpObject.cpp index 43eb796cf98b..a7e6b08eb34b 100644 --- a/js/src/vm/RegExpObject.cpp +++ b/js/src/vm/RegExpObject.cpp @@ -1150,7 +1150,7 @@ bool RegExpShared::initializeNamedCaptures(JSContext* cx, HandleRegExpShared re, // Create a plain template object. RootedPlainObject templateObject( - cx, NewObjectWithGivenProto(cx, nullptr)); + cx, NewTenuredObjectWithGivenProto(cx, nullptr)); if (!templateObject) { return false; }