1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:08:10 +00:00

LibJS: Move install_error_cause() from Object to Error

This is only used by Error and its subclasses, so it doesn't need to be
available to all objects.
This commit is contained in:
Linus Groh 2021-06-26 19:06:55 +01:00
parent a63cc2c6b9
commit dbda5a9a4c
4 changed files with 17 additions and 17 deletions

View file

@ -21,6 +21,8 @@ public:
explicit Error(Object& prototype);
virtual ~Error() override = default;
void install_error_cause(Value options);
};
// NOTE: Making these inherit from Error is not required by the spec but