From d54ef02dfe4455c043c3ccb3d1d15e5fcc302756 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Tue, 6 Jun 2023 04:57:01 +0900 Subject: chore: update deno_lint to 0.46.0 (#19372) --- ext/fetch/21_formdata.js | 3 ++- ext/fetch/22_body.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/fetch') diff --git a/ext/fetch/21_formdata.js b/ext/fetch/21_formdata.js index 1ddd5f656..1f0f00088 100644 --- a/ext/fetch/21_formdata.js +++ b/ext/fetch/21_formdata.js @@ -31,6 +31,7 @@ const { SafeRegExp, Symbol, StringFromCharCode, + StringPrototypeCharCodeAt, StringPrototypeTrim, StringPrototypeSlice, StringPrototypeSplit, @@ -368,7 +369,7 @@ function parseContentDisposition(value) { function decodeLatin1StringAsUtf8(latin1String) { const buffer = new Uint8Array(latin1String.length); for (let i = 0; i < latin1String.length; i++) { - buffer[i] = latin1String.charCodeAt(i); + buffer[i] = StringPrototypeCharCodeAt(latin1String, i); } return core.decode(buffer); } diff --git a/ext/fetch/22_body.js b/ext/fetch/22_body.js index 82703af76..9fe00b144 100644 --- a/ext/fetch/22_body.js +++ b/ext/fetch/22_body.js @@ -424,6 +424,7 @@ function extractBody(object) { ObjectPrototypeIsPrototypeOf(URLSearchParamsPrototype, object) ) { // TODO(@satyarohith): not sure what primordial here. + // deno-lint-ignore prefer-primordials source = object.toString(); contentType = "application/x-www-form-urlencoded;charset=UTF-8"; } else if (ObjectPrototypeIsPrototypeOf(ReadableStreamPrototype, object)) { -- cgit v1.2.3