Remove node polyfill

This commit is contained in:
Cohee 2024-10-11 10:33:09 +03:00
parent 0c8ccf1765
commit 7ca1b2e532
2 changed files with 0 additions and 13 deletions

View File

@ -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 () => {};

View File

@ -1,9 +1,6 @@
import crypto from 'node:crypto'; import crypto from 'node:crypto';
import polyfill from './polyfill.js';
import { getConfigValue } from './util.js'; import { getConfigValue } from './util.js';
polyfill();
const PROMPT_PLACEHOLDER = getConfigValue('promptPlaceholder', 'Let\'s get started.'); const PROMPT_PLACEHOLDER = getConfigValue('promptPlaceholder', 'Let\'s get started.');
/** /**