mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +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;
|
||||
}
|
||||
}
|
||||
,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)
|
||||
|
|
Loading…
Reference in a new issue