mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +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:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user