0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

fixup! ircd::js: Stub runtime/context callback framework.

This commit is contained in:
Jason Volk 2016-10-25 02:55:26 -07:00
parent 91d11f391b
commit 04c6b67649

View file

@ -1713,7 +1713,7 @@ ircd::js::context::context(JSRuntime *const &runtime,
cx = nullptr;
}
}
,opts{opts}
,opts(opts)
,except{nullptr}
,state
{{
@ -2107,7 +2107,7 @@ ircd::js::runtime::runtime(const struct opts &opts)
JS_NewRuntime(opts.maxbytes),
JS_DestroyRuntime
}
,opts{opts}
,opts(opts)
{
// We use their privdata to find `this` via our(JSRuntime*) function.
// Any additional user privdata will have to ride a member in this class itself.
@ -2135,7 +2135,7 @@ ircd::js::runtime::runtime(const struct opts &opts)
ircd::js::runtime::runtime(runtime &&other)
noexcept
:custom_ptr<JSRuntime>{std::move(other)}
,opts{std::move(other.opts)}
,opts(std::move(other.opts))
{
// Branch not taken for null/defaulted instance of JSRuntime smart ptr
if(!!*this)