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); |