mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS: Rename JS_ENUMERATE_{ERROR_SUBCLASSES => NATIVE_ERRORS}
The fact that they *are* subclasses is an implementation detail and should not be highlighted. The spec calls these NativeErrors, so let's use that. Also added a comment explaining *why* they inherit from Error - I was about to change that :^)
This commit is contained in:
parent
0e10dec324
commit
ad3242bab7
Notes:
sideshowbarker
2024-07-18 12:25:34 +09:00
Author: https://github.com/linusg
Commit: ad3242bab7
Pull-request: https://github.com/SerenityOS/serenity/pull/7999
8 changed files with 48 additions and 45 deletions
|
@ -73,7 +73,7 @@ Value ErrorConstructor::construct(Function&)
|
|||
return ClassName::create(global_object(), message); \
|
||||
}
|
||||
|
||||
JS_ENUMERATE_ERROR_SUBCLASSES
|
||||
JS_ENUMERATE_NATIVE_ERRORS
|
||||
#undef __JS_ENUMERATE
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue