diff --git a/js/src/tests/ecma_2021/manual/test-replaceall.html b/js/src/tests/ecma_2021/manual/test-replaceall.html new file mode 100644 index 0000000000..9f90525493 --- /dev/null +++ b/js/src/tests/ecma_2021/manual/test-replaceall.html @@ -0,0 +1,63 @@ + + + + +Replace "a" with "b": +
+Replace "a" with "aa": +
+Replace "" with "b": +
+Replace "old" with special pattern "new (was: $&)": +
+Replace "/[0-9]/g" with "b": +
+Replace "/[0-9]/" with "b" (Throws): +
+ + +