From 697b60a335cad20f73e568c47d17564a6bd3fab7 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Wed, 16 Mar 2022 12:58:38 +0530 Subject: perf(web): use DOMString for BlobParts (#13979) --- ext/web/09_file.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ext/web/09_file.js') diff --git a/ext/web/09_file.js b/ext/web/09_file.js index fbc00326e..2117a0835 100644 --- a/ext/web/09_file.js +++ b/ext/web/09_file.js @@ -394,7 +394,10 @@ return webidl.converters["ArrayBufferView"](V, opts); } } - return webidl.converters["USVString"](V, opts); + // BlobPart is passed to processBlobParts after conversion, which calls core.encode() + // on the string. + // core.encode() is equivalent to USVString normalization. + return webidl.converters["DOMString"](V, opts); }; webidl.converters["sequence"] = webidl.createSequenceConverter( webidl.converters["BlobPart"], -- cgit v1.2.3