-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot assign to read only property 'random' #38
Comments
I can't reproduce the error using the snippet you posted, do you get a stack trace? If you don't, can you try using this to catch the unhandled rejection? process.on('unhandledRejection', (reason, p) => {
console.error(`Uncaught Promise Error: \n${reason}\nStack:\n${reason.stack}\nPromise:\n${require('util').inspect(p, { depth: 2 })}`)
})
|
Here's the stack trace
|
Sorry, forgot to mention I'm on Node v10.16.2 and NPM v6.9.0 |
Can't reproduce it on Node v13.5.0 or Node v10.16.2, are you adding onto I can reproduce the same error by using: Object.defineProperty(Array.prototype, 'random', {
value: () => {},
writable: false,
}); |
Fix prototype assign issue if Array.prototype was written to
Latest version ( |
After updating from 2.0.3 to 2.0.4, I receive an error whenever trying to do a search. Tested with both Gelbooru and Safebooru and both throw the same error. Issue is resolved upon rolling back to 2.0.3.
[2019-12-18 22:18:49]: ERROR Unhandled rejection: TypeError: Cannot assign to read only property 'random' of object '[object Object]'
Code below is from the discord.js project that I noticed the issue in.
The text was updated successfully, but these errors were encountered: