mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-26 18:09:45 +00:00
LibJS: Remove the default length & attributes from define_native_*
These are usually incorrect, and people sometimes forget to add the correct values as a result of them being optional, so they should just be specified explicitly.
This commit is contained in:
parent
a6b8291a9b
commit
53f70e5208
Notes:
sideshowbarker
2024-07-18 10:18:53 +09:00
Author: https://github.com/IdanHo
Commit: 53f70e5208
Pull-request: https://github.com/SerenityOS/serenity/pull/8478
Reviewed-by: https://github.com/linusg
10 changed files with 48 additions and 43 deletions
|
|
@ -178,7 +178,7 @@ void TestRunnerGlobalObject::initialize_global_object()
|
|||
{
|
||||
Base::initialize_global_object();
|
||||
define_direct_property("global", this, JS::Attribute::Enumerable);
|
||||
define_native_function("fuzzilli", fuzzilli, 2);
|
||||
define_native_function("fuzzilli", fuzzilli, 2, JS::default_attributes);
|
||||
}
|
||||
|
||||
int main(int, char**)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue