cloudflareExecutionContextOf function
Returns the Worker execution context associated with context, when present.
Implementation
CloudflareExecutionContext? cloudflareExecutionContextOf(
EngineContext context,
) {
final extension = routedNodeExtensionOf<FetchRuntimeExtension>(context);
final executionContext = extension?.executionContext;
return executionContext == null
? null
: cloudflareExecutionContextFromJavaScript(executionContext);
}