Skip to content
Myr

perf(context): restore the `env` field initializer (#5186)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by Yusuke Wada · parent 3b3ee4b · Browse files · 1 file+1 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:src/context.ts+1 added-3 removed
310 unmodified lines
311 * const counter = c.env.COUNTER312 * })313 * ```314 */315 env: E['Bindings']315 env: E['Bindings'] = {}316 #var: Map<unknown, unknown> | undefined317 finalized: boolean = false318 /**319 * `.error` can get the error object from the middleware if the Handler throws an error.
36 unmodified lines
356 this.env = options.env357 this.#notFoundHandler = options.notFoundHandler358 this.#path = options.path359 this.#matchResult = options.matchResult360 } else {361 this.env = {}360 }361 }362363 /**
430 unmodified lines