diff --git a/test/built-ins/RegExp/named-groups/string-replace-unclosed.js b/test/built-ins/RegExp/named-groups/string-replace-unclosed.js
index 588bc3ed8571bbc250b325f490235e0d973a1220..1952b85050d36c2ebb3373e215f740fefb3ca1eb 100644
--- a/test/built-ins/RegExp/named-groups/string-replace-unclosed.js
+++ b/test/built-ins/RegExp/named-groups/string-replace-unclosed.js
@@ -21,4 +21,6 @@ for (let flags of ["", "u", "g", "gu"]) {
   let re = new RegExp(source, flags);
   assert.throws(SyntaxError, () => "abcd".replace(re, "$<snd"),
                 "unclosed named group in replacement should throw a SyntaxError");
+  assert.throws(SyntaxError, () => "abcd".replace(re, "$<>"),
+                "empty named group in replacement should throw a SyntaxError");
 }