1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:58:13 +00:00

LibJS: Set length property in Object::put_native_function()

This commit is contained in:
Linus Groh 2020-04-04 14:13:53 +01:00 committed by Andreas Kling
parent b3c4514902
commit cd3e2690eb
14 changed files with 25 additions and 23 deletions

View file

@ -40,7 +40,7 @@ namespace Bindings {
HTMLCanvasElementWrapper::HTMLCanvasElementWrapper(HTMLCanvasElement& element)
: ElementWrapper(element)
{
put_native_function("getContext", get_context);
put_native_function("getContext", get_context, 1);
put_native_property("width", width_getter, nullptr);
put_native_property("height", height_getter, nullptr);