0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::js: Allow value copy.

This commit is contained in:
Jason Volk 2016-11-01 05:23:32 -07:00
parent 333b0dca5a
commit bfb5948191

View file

@ -67,6 +67,7 @@ struct value
value(JS::Symbol *const &);
value(const JS::Value &);
value();
value(const value &);
};
template<lifetime L> JSType type(const value<L> &);
@ -89,6 +90,12 @@ value<L>::value()
{
}
template<lifetime L>
value<L>::value(const value &other)
:value<L>::root::type{other.get()}
{
}
template<lifetime L>
value<L>::value(const JS::Value &val)
:value<L>::root::type{val}