fix: remove node: prefix in require()

this feature was only later backported to v14.18.0, meanwhile we want to
support the whole v14.x version range
This commit is contained in:
Bobby 2022-08-24 04:02:37 +07:00
parent 96522a425f
commit 14a340922c
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09

View File

@ -11,7 +11,7 @@ process.on('unhandledRejection', error => {
// Change working directory into the directory that contains lolisafe.js
try {
const { chdir, cwd } = require('node:process')
const { chdir, cwd } = require('process')
if (cwd() !== __dirname) {
chdir(__dirname)
logger.log(`Changed working directory to: ${__dirname}`)