summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extensions/url/00_url.js4
-rw-r--r--extensions/webidl/00_webidl.js11
-rw-r--r--tools/wpt/expectation.json6
3 files changed, 14 insertions, 7 deletions
diff --git a/extensions/url/00_url.js b/extensions/url/00_url.js
index 1c66c9d57..2daae8d45 100644
--- a/extensions/url/00_url.js
+++ b/extensions/url/00_url.js
@@ -524,9 +524,9 @@
// Union for (sequence<sequence<USVString>> or record<USVString, USVString> or USVString)
if (webidl.type(V) === "Object" && V !== null) {
if (V[Symbol.iterator] !== undefined) {
- return webidl.converters["sequence<sequence<ByteString>>"](V, opts);
+ return webidl.converters["sequence<sequence<USVString>>"](V, opts);
}
- return webidl.converters["record<ByteString, ByteString>"](V, opts);
+ return webidl.converters["record<USVString, USVString>"](V, opts);
}
return webidl.converters.USVString(V, opts);
};
diff --git a/extensions/webidl/00_webidl.js b/extensions/webidl/00_webidl.js
index 3e6dc95eb..8260cf214 100644
--- a/extensions/webidl/00_webidl.js
+++ b/extensions/webidl/00_webidl.js
@@ -582,6 +582,17 @@
converters.ByteString,
);
+ converters["sequence<USVString>"] = createSequenceConverter(
+ converters.USVString,
+ );
+ converters["sequence<sequence<USVString>>"] = createSequenceConverter(
+ converters["sequence<USVString>"],
+ );
+ converters["record<USVString, USVString>"] = createRecordConverter(
+ converters.USVString,
+ converters.USVString,
+ );
+
converters["sequence<DOMString>"] = createSequenceConverter(
converters.DOMString,
);
diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json
index 94d9ea81c..d22f9694d 100644
--- a/tools/wpt/expectation.json
+++ b/tools/wpt/expectation.json
@@ -669,11 +669,7 @@
"url-tojson.any.html": true,
"urlencoded-parser.any.html": true,
"urlsearchparams-append.any.html": true,
- "urlsearchparams-constructor.any.html": [
- "Construct with 2 unpaired surrogates (no trailing)",
- "Construct with 3 unpaired surrogates (no leading)",
- "Construct with object with NULL, non-ASCII, and surrogate keys"
- ],
+ "urlsearchparams-constructor.any.html": true,
"urlsearchparams-delete.any.html": true,
"urlsearchparams-foreach.any.html": true,
"urlsearchparams-get.any.html": true,