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

Unified Diff: test/mjsunit/messages.js

Issue 1968953002: [runtime] Implement encodeURI as single runtime function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix isalnum() bug Created 4 years, 7 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
Index: test/mjsunit/messages.js
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js
index 8796d05f16e5be3afadc562c64fce372253ca670..90730221ac4faf44427ed6d6f55a844dfdd9b5bc 100644
--- a/test/mjsunit/messages.js
+++ b/test/mjsunit/messages.js
@@ -452,3 +452,11 @@ test(function() {
test(function() {
decodeURI("%%");
}, "URI malformed", URIError);
+
+// kURIMalformed
+test(function() {
+ var leadingByte = 0xD800;
+ var continuationByte = 0xD800;
+ var invalidUtf8 = String.fromCharCode(leadingByte)+String.fromCharCode(continuationByte);
Yang 2016/05/12 07:39:21 please adher to the 80 character limit, and whites
Franzi 2016/05/13 09:42:03 Done.
+ encodeURI(invalidUtf8);
+}, "URI malformed", URIError);

Powered by Google App Engine
This is Rietveld 408576698