ladybird/Userland/Libraries/LibJS/Tests/builtins/Error
Linus Groh fb60ada6ce LibJS: Handle non-Error this object in Error.prototype.stack getter
This is taken from the abandoned error stacks proposal, which
already serves as the source of truth for the setter. It only requires
the this value to be an object - if it's not an Error object, the getter
returns undefined.
I have not compared this behavior to the non-standard implementations of
the stack property in other engines, but presumably the spec authors
already did that work.

This change gets the Sentry browser SDK working to a point where it can
actually send uncaught exceptions via the API :^)
2022-03-15 17:32:48 +01:00
..
Error.js LibJS: Implement the Error Cause proposal 2021-06-11 21:34:05 +01:00
Error.prototype.message.js LibJS: Add name and message properties to NativeError prototypes 2021-04-14 10:11:04 +02:00
Error.prototype.name.js LibJS: Add name and message properties to NativeError prototypes 2021-04-14 10:11:04 +02:00
Error.prototype.stack.js LibJS: Handle non-Error this object in Error.prototype.stack getter 2022-03-15 17:32:48 +01:00
Error.prototype.toString.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00