mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
LibJS: Remove unused argument in NativeFunction constructor
This commit is contained in:
parent
32d0d00ab2
commit
4036ff9d91
3 changed files with 3 additions and 3 deletions
|
@ -750,7 +750,7 @@ bool Object::define_native_function(const StringOrSymbol& property_name, AK::Fun
|
|||
} else {
|
||||
function_name = String::format("[%s]", property_name.as_symbol()->description().characters());
|
||||
}
|
||||
auto* function = NativeFunction::create(interpreter(), global_object(), function_name, move(native_function));
|
||||
auto* function = NativeFunction::create(global_object(), function_name, move(native_function));
|
||||
function->define_property("length", Value(length), Attribute::Configurable);
|
||||
if (interpreter().exception())
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue