From 7ca1b2e5326869ede048de34721fb0e331097ac1 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 11 Oct 2024 10:33:09 +0300 Subject: [PATCH] Remove node polyfill --- src/polyfill.js | 10 ---------- src/prompt-converters.js | 3 --- 2 files changed, 13 deletions(-) delete mode 100644 src/polyfill.js diff --git a/src/polyfill.js b/src/polyfill.js deleted file mode 100644 index 390b4b45a..000000000 --- a/src/polyfill.js +++ /dev/null @@ -1,10 +0,0 @@ -if (!Array.prototype.findLastIndex) { - Array.prototype.findLastIndex = function (callback, thisArg) { - for (let i = this.length - 1; i >= 0; i--) { - if (callback.call(thisArg, this[i], i, this)) return i; - } - return -1; - }; -} - -export default () => {}; diff --git a/src/prompt-converters.js b/src/prompt-converters.js index bdb4c8233..0fd257877 100644 --- a/src/prompt-converters.js +++ b/src/prompt-converters.js @@ -1,9 +1,6 @@ import crypto from 'node:crypto'; -import polyfill from './polyfill.js'; import { getConfigValue } from './util.js'; -polyfill(); - const PROMPT_PLACEHOLDER = getConfigValue('promptPlaceholder', 'Let\'s get started.'); /**