1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-05 13:59:01 -05:00

refactor(core): make sure to always set embedder wrapper offset (#19048)

This commit is contained in:
Bartek Iwańczuk 2023-05-08 21:37:29 +02:00 committed by David Sherret
parent 386fa09920
commit 4e1a15090f

View file

@ -396,12 +396,11 @@ impl JsRuntime {
let mut params = options
.create_params
.take()
.unwrap_or_else(|| {
v8::CreateParams::default().embedder_wrapper_type_info_offsets(
V8_WRAPPER_TYPE_INDEX,
V8_WRAPPER_OBJECT_INDEX,
)
})
.unwrap_or_default()
.embedder_wrapper_type_info_offsets(
V8_WRAPPER_TYPE_INDEX,
V8_WRAPPER_OBJECT_INDEX,
)
.external_references(&**refs);
if let Some(snapshot) = options.startup_snapshot {