mirror of
https://github.com/denoland/deno.git
synced 2025-01-07 06:46:59 -05:00
refactor(core): make sure to always set embedder wrapper offset (#19048)
This commit is contained in:
parent
386fa09920
commit
4e1a15090f
1 changed files with 5 additions and 6 deletions
|
@ -396,12 +396,11 @@ impl JsRuntime {
|
||||||
let mut params = options
|
let mut params = options
|
||||||
.create_params
|
.create_params
|
||||||
.take()
|
.take()
|
||||||
.unwrap_or_else(|| {
|
.unwrap_or_default()
|
||||||
v8::CreateParams::default().embedder_wrapper_type_info_offsets(
|
.embedder_wrapper_type_info_offsets(
|
||||||
V8_WRAPPER_TYPE_INDEX,
|
V8_WRAPPER_TYPE_INDEX,
|
||||||
V8_WRAPPER_OBJECT_INDEX,
|
V8_WRAPPER_OBJECT_INDEX,
|
||||||
)
|
)
|
||||||
})
|
|
||||||
.external_references(&**refs);
|
.external_references(&**refs);
|
||||||
|
|
||||||
if let Some(snapshot) = options.startup_snapshot {
|
if let Some(snapshot) = options.startup_snapshot {
|
||||||
|
|
Loading…
Reference in a new issue