Skip to content

Commit 54c6d64

Browse files
shvaikaleshsideshowbarker
authored andcommitted
1 parent 48d0b26 commit 54c6d64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

url/urlsearchparams-constructor.any.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ test(function() {
200200
{ "input": {"+": "%C2"}, "output": [["+", "%C2"]], "name": "object with +" },
201201
{ "input": {c: "x", a: "?"}, "output": [["c", "x"], ["a", "?"]], "name": "object with two keys" },
202202
{ "input": [["c", "x"], ["a", "?"]], "output": [["c", "x"], ["a", "?"]], "name": "array with two keys" },
203+
{ "input": {"\uD835x": "1", "xx": "2", "\uD83Dx": "3"}, "output": [["\uFFFDx", "3"], ["xx", "2"]], "name": "2 unpaired surrogates (no trailing)" },
204+
{ "input": {"x\uDC53": "1", "x\uDC5C": "2", "x\uDC65": "3"}, "output": [["x\uFFFD", "3"]], "name": "3 unpaired surrogates (no leading)" },
203205
{ "input": {"a\0b": "42", "c\uD83D": "23", "d\u1234": "foo"}, "output": [["a\0b", "42"], ["c\uFFFD", "23"], ["d\u1234", "foo"]], "name": "object with NULL, non-ASCII, and surrogate keys" }
204206
].forEach((val) => {
205207
test(() => {

0 commit comments

Comments
 (0)