mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
LibJS+LibWeb: Fix some inconsistencies in NativeFunction callbacks
These should always pass the arguments in a const Vector<JS::Value>&.
This commit is contained in:
parent
324b92fd06
commit
08b17d70af
3 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ private:
|
|||
virtual bool is_native_function() const override { return true; }
|
||||
virtual const char* class_name() const override { return "NativeFunction"; }
|
||||
|
||||
AK::Function<Value(Object*, Vector<Value>)> m_native_function;
|
||||
AK::Function<Value(Object*, const Vector<Value>&)> m_native_function;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue