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:
parent
a63cc2c6b9
commit
dbda5a9a4c
4 changed files with 17 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue