Index: test/mjsunit/es6/string-html.js |
diff --git a/test/mjsunit/es6/string-html.js b/test/mjsunit/es6/string-html.js |
index 1c63221c9f7ec6b0c8949628f8ebd4bffadffe9d..690830ba841dc641ce6d468c82ceb3cf3d8e31e0 100644 |
--- a/test/mjsunit/es6/string-html.js |
+++ b/test/mjsunit/es6/string-html.js |
@@ -192,3 +192,10 @@ assertEquals(String.prototype.sup.length, 0); |
assertEquals(1, calls); |
} |
})(); |
+ |
+ |
+(function TestDeleteStringRelace() { |
+ assertEquals('<a name="n">s</a>', 's'.anchor('n')); |
+ assertTrue(delete String.prototype.replace); |
+ assertEquals('<a name="n">s</a>', 's'.anchor('n')); |
+})(); |