Files
browser/src
Karl Seguin cd2bb28c6c Tweak snapshot for workers
We'll have two types of contexts: one for pages and one for workers. They'll
[probably] both be js.Context, but they'll have distinct FunctionTemplates
attached to their global. The Worker template will only contain a small subset
of the main Page's types, along with 1 or 2 of its own specific ones.

The Snapshot now creates the templates for both, so that the Env contains the
function templates for both contexts. Furthermore, having a "merged" view like
this ensures that the env.template[N] indices are consistent between the two.

However, the snapshot only attaches the Page-specific types to the snapshot
context. This allows the Page-context to be created as-is (e.g. efficiently).
The worker context will be created lazily, on demand, but from the templates
loaded into the env (since, again, the env contains templates for both).
2026-04-14 12:24:08 +08:00
..
2026-04-14 12:24:08 +08:00
2026-04-13 23:46:37 +02:00
2026-01-29 21:00:06 +08:00
2026-04-10 06:51:50 +08:00
2026-04-10 19:09:18 +08:00
2026-04-10 19:09:18 +08:00
2026-04-10 06:51:10 +08:00
2026-04-11 12:24:19 +08:00
2026-01-24 07:59:41 +08:00