mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:17:35 +00:00
LibJS: Add JS::make_handle(T&)
I'm not sure why we only had a T* variant of this.
This commit is contained in:
parent
13680ae038
commit
c26b58bc53
1 changed files with 6 additions and 0 deletions
|
@ -71,4 +71,10 @@ inline Handle<T> make_handle(T* cell)
|
||||||
return Handle<T>::create(cell);
|
return Handle<T>::create(cell);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class T>
|
||||||
|
inline Handle<T> make_handle(T& cell)
|
||||||
|
{
|
||||||
|
return Handle<T>::create(&cell);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue