From 90769f0327f7e1fe73066e7cf511870dee455be0 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Mon, 21 Oct 2024 14:02:36 -0700 Subject: [PATCH] fixup --- runtime/fastly/builtins/backend.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/fastly/builtins/backend.cpp b/runtime/fastly/builtins/backend.cpp index dfe1f04e00..cbf832eece 100644 --- a/runtime/fastly/builtins/backend.cpp +++ b/runtime/fastly/builtins/backend.cpp @@ -1723,6 +1723,7 @@ JSObject *Backend::create(JSContext *cx, JS::HandleObject request) { host_api::BackendConfig backend_config = default_backend_config.clone(); JS::RootedValue name(cx, JS::StringValue(name_js_str)); + JS::SetReservedSlot(request, static_cast(Request::Slots::Backend), name); auto host_backend = set_backend(cx, backend, name); if (!host_backend) { return nullptr;