diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js
index 6073c7ec8b5269e6864ae94c74b16959e64f478a..6ccef8caaf15f6cd7924cfe2c81eb3070f5c98d4 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js
@@ -28,8 +28,10 @@ info: >
     Replacement text:
     The nth element of captures, where n is a single digit in the range 1 to 9.
     If n≤m and the nth element of captures is undefined, use the empty String
-    instead. If n>m, the result is implementation-defined.
+    instead. If n>m, no replacement is done.
 features: [Symbol.replace]
 ---*/
 
 assert.sameValue(/b(c)(z)?(.)/[Symbol.replace]('abcde', '[$1$2$3]'), 'a[cd]e');
+
+assert.sameValue(/b(c)(z)?(.)/[Symbol.replace]('abcde', '[$1$2$3$4$0]'), 'a[cd$4$0]e');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js
index d57eb3aae2e5b16f187e30d19271e581f144e478..9397250780b2e8929644176f974b4ff949c59ca0 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js
@@ -28,11 +28,14 @@ info: >
     Replacement text:
     The nnth element of captures, where nn is a two-digit decimal number in the
     range 01 to 99. If nn≤m and the nnth element of captures is undefined, use
-    the empty String instead. If nn is 00 or nn>m, the result is
-    implementation-defined.
+    the empty String instead. If nn is 00 or nn>m, no replacement is done.
 features: [Symbol.replace]
 ---*/
 
 assert.sameValue(
   /b(c)(z)?(.)/[Symbol.replace]('abcde', '[$01$02$03]'), 'a[cd]e'
 );
+
+assert.sameValue(
+  /b(c)(z)?(.)/[Symbol.replace]('abcde', '[$01$02$03$04$00]'), 'a[cd$04$00]e'
+);