From 386c30ace5579c1e23bf246889cb99a058422d0f Mon Sep 17 00:00:00 2001 From: Alexey Shvayka Date: Thu, 15 Oct 2020 11:02:50 +0300 Subject: [PATCH] WebKit export of https://bugs.webkit.org/show_bug.cgi?id=217612 --- url/urlsearchparams-constructor.any.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/url/urlsearchparams-constructor.any.js b/url/urlsearchparams-constructor.any.js index 1135d5d3dbbfa3..f9878373e5e067 100644 --- a/url/urlsearchparams-constructor.any.js +++ b/url/urlsearchparams-constructor.any.js @@ -200,6 +200,8 @@ test(function() { { "input": {"+": "%C2"}, "output": [["+", "%C2"]], "name": "object with +" }, { "input": {c: "x", a: "?"}, "output": [["c", "x"], ["a", "?"]], "name": "object with two keys" }, { "input": [["c", "x"], ["a", "?"]], "output": [["c", "x"], ["a", "?"]], "name": "array with two keys" }, + { "input": {"\uD835x": "1", "xx": "2", "\uD83Dx": "3"}, "output": [["\uFFFDx", "3"], ["xx", "2"]], "name": "2 unpaired surrogates (no trailing)" }, + { "input": {"x\uDC53": "1", "x\uDC5C": "2", "x\uDC65": "3"}, "output": [["x\uFFFD", "3"]], "name": "3 unpaired surrogates (no leading)" }, { "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" } ].forEach((val) => { test(() => {