Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(712)

Unified Diff: test/mjsunit/uri.js

Issue 1204483003: Remove usage of S.p.charCodeAt from uri.js (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/uri.js ('K') | « src/uri.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/uri.js
diff --git a/test/mjsunit/uri.js b/test/mjsunit/uri.js
index fae349f439faf84fa43a997e7f8f0eec738ca547..862e420f892473c7465b1822f860d49f49e92ace 100644
--- a/test/mjsunit/uri.js
+++ b/test/mjsunit/uri.js
@@ -88,3 +88,13 @@ test("\u1234\u0123\uabcd");
test("abcd");
test("ab<\u1234\u0123");
test("ab\u1234<\u0123");
+
+
+(function TestDeleteCharCodeAt() {
+ assertEquals('abc', encodeURI('abc'));
+ assertEquals('abc', decodeURI('abc'));
+ assertTrue(delete String.prototype.charCodeAt);
+ assertTrue(delete String.prototype.charAt);
+ assertEquals('abc', encodeURI('abc'));
+ assertEquals('abc', decodeURI('abc'));
+})();
« src/uri.js ('K') | « src/uri.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698