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 @@
1if (!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
10export default () => {};
src/prompt-converters.js+0 -3
@@ -1,9 +1,6 @@
1import crypto from 'node:crypto';1import crypto from 'node:crypto';
2import polyfill from './polyfill.js';
3import { getConfigValue } from './util.js';2import { getConfigValue } from './util.js';
43
5polyfill();
6
7const PROMPT_PLACEHOLDER = getConfigValue('promptPlaceholder', 'Let\'s get started.');4const PROMPT_PLACEHOLDER = getConfigValue('promptPlaceholder', 'Let\'s get started.');
85
9/**6/**