mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +01:00
fixup! ircd::js: Stub runtime/context callback framework.
This commit is contained in:
parent
91d11f391b
commit
04c6b67649
1 changed files with 3 additions and 3 deletions
|
@ -1713,7 +1713,7 @@ ircd::js::context::context(JSRuntime *const &runtime,
|
||||||
cx = nullptr;
|
cx = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
,opts{opts}
|
,opts(opts)
|
||||||
,except{nullptr}
|
,except{nullptr}
|
||||||
,state
|
,state
|
||||||
{{
|
{{
|
||||||
|
@ -2107,7 +2107,7 @@ ircd::js::runtime::runtime(const struct opts &opts)
|
||||||
JS_NewRuntime(opts.maxbytes),
|
JS_NewRuntime(opts.maxbytes),
|
||||||
JS_DestroyRuntime
|
JS_DestroyRuntime
|
||||||
}
|
}
|
||||||
,opts{opts}
|
,opts(opts)
|
||||||
{
|
{
|
||||||
// We use their privdata to find `this` via our(JSRuntime*) function.
|
// 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.
|
// 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)
|
ircd::js::runtime::runtime(runtime &&other)
|
||||||
noexcept
|
noexcept
|
||||||
:custom_ptr<JSRuntime>{std::move(other)}
|
: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
|
// Branch not taken for null/defaulted instance of JSRuntime smart ptr
|
||||||
if(!!*this)
|
if(!!*this)
|
||||||
|
|
Loading…
Reference in a new issue