The issue involves preventing crashes when builtin prototypes are modified, which requires careful handling in the V8 engine.
The issue involves a crash when builtin prototypes like Array.prototype are modified, specifically when using child_process.exec. The task is to prevent the crash without making invasive changes, focusing on improving UX rather than fixing a bug. The main challenge is ensuring the fix does not introduce new issues or complicate the codebase.
v23.6.0
Linux SMP Debian 5.10.103-1 (2022-03-07) x86_64 x86_64 x86_64 GNU/Linux
No response
Hi,
I would like to report a bug, it can be reproduced by running the PoC below:
const {exec} = require('child_process');
Object.defineProperty(Array.prototype, "2", {
set: function () {},
});
(async function () {
exec('pwd', (err, stdout, stderr) => {
console.log(stdout);
});
})();
Regards,
AH
It reproduces anytime by simply running the given PoC on the given Node.js version.
It is a crash.
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal
No response
Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!