diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-06-27 15:18:22 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 15:18:22 +0900 |
commit | e16b74d792c8fcdb46ab231575fc75f29d4d7fe7 (patch) | |
tree | dd3e21da57213ba623e287bc804c8014e00de6e2 /ext/node/polyfills/internal/normalize_encoding.mjs | |
parent | 814edcdd570b3fbef2001f7e6434320743a8f834 (diff) |
chore(ext/node): disable prefer-primordials on a per-file basis (#19553)
Diffstat (limited to 'ext/node/polyfills/internal/normalize_encoding.mjs')
-rw-r--r-- | ext/node/polyfills/internal/normalize_encoding.mjs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/node/polyfills/internal/normalize_encoding.mjs b/ext/node/polyfills/internal/normalize_encoding.mjs index 788c86c56..aded088e7 100644 --- a/ext/node/polyfills/internal/normalize_encoding.mjs +++ b/ext/node/polyfills/internal/normalize_encoding.mjs @@ -1,5 +1,8 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. +// TODO(petamoriken): enable prefer-primordials for node polyfills +// deno-lint-ignore-file prefer-primordials + export function normalizeEncoding(enc) { if (enc == null || enc === "utf8" || enc === "utf-8") return "utf8"; return slowCases(enc); |