diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-06-06 04:57:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 15:57:01 -0400 |
commit | d54ef02dfe4455c043c3ccb3d1d15e5fcc302756 (patch) | |
tree | d3f0a84740bbc26681a8340066b44e5b15dc9255 /ext/fetch/21_formdata.js | |
parent | 11dd5a0ae73b4d3612de6422893a25232f930b84 (diff) |
chore: update deno_lint to 0.46.0 (#19372)
Diffstat (limited to 'ext/fetch/21_formdata.js')
-rw-r--r-- | ext/fetch/21_formdata.js | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |