diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-03-16 12:58:38 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 12:58:38 +0530 |
commit | 697b60a335cad20f73e568c47d17564a6bd3fab7 (patch) | |
tree | 0f14ae5898de2f55cc15aa760de9e566915b3219 /ext/web/09_file.js | |
parent | 395f527238f31d312b91955a66bc25bc0a6d11fb (diff) |
perf(web): use DOMString for BlobParts (#13979)
Diffstat (limited to 'ext/web/09_file.js')
-rw-r--r-- | ext/web/09_file.js | 5 |
1 files changed, 4 insertions, 1 deletions
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<BlobPart>"] = webidl.createSequenceConverter( webidl.converters["BlobPart"], |