SyntaxFix
Write A Post
Hire A Developer
Questions
You can also just redefine those non-enumerable properties to be enumerable.
Object.defineProperty(Error.prototype, 'message', { configurable: true, enumerable: true });
and maybe stack property too.
stack