Remove node polyfill

7ca1b2e5326869ede048de34721fb0e331097ac1

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +0 -13Showing whitespace changes
src/polyfill.js+0 -10
@@ -1,10 +0,0 @@
1-if (!Array.prototype.findLastIndex) {
2- Array.prototype.findLastIndex = function (callback, thisArg) {
3- for (let i = this.length - 1; i >= 0; i--) {
4- if (callback.call(thisArg, this[i], i, this)) return i;
5- }
6- return -1;
7- };
8-}
9-
10-export default () => {};
src/prompt-converters.js+0 -3
@@ -1,9 +1,6 @@
11import crypto from 'node:crypto';
2-import polyfill from './polyfill.js';
32import { getConfigValue } from './util.js';
43
5-polyfill();
6-
74const PROMPT_PLACEHOLDER = getConfigValue('promptPlaceholder', 'Let\'s get started.');
85
96/**