Skip to content

: Add IWorkerSetup runtime plumbing (#2123) - #2123

Open
tmikov wants to merge 2 commits into
facebook:static_hfrom
tmikov:export-D114374137
Open

: Add IWorkerSetup runtime plumbing (#2123)#2123
tmikov wants to merge 2 commits into
facebook:static_hfrom
tmikov:export-D114374137

Conversation

@tmikov

@tmikov tmikov commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary:

Add IWorkerSetup and ISetWorkerSetup to
hermes-interfaces.h (an ICast-based setter with a
getWorkerSetup accessor), and wire HermesRuntimeImpl to store
the integrator's opaque provider pointer and expose it via that getter.
Give the APITest provider harness a virtual destructor and mark a
not-yet-used helper [[maybe_unused]] so the build is warning-free.

Changelog: Add IWorkerSetup

Differential Revision: D114374137

@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Aug 2, 2026
@meta-codesync

meta-codesync Bot commented Aug 2, 2026

Copy link
Copy Markdown

@tmikov has exported this pull request. If you are a Meta employee, you can view the originating Diff in D114374137.

Tzvetan Mikov added 2 commits August 2, 2026 17:56
Summary:
Add the design spec and the task-by-task implementation plan for
extending the Worker constructor to accept a URL, loaded via an
integrator-provided IWorkerSetup (jsi::ICast-based for
ABI-stable extension) that resolves a URL to a jsi::Buffer of script
bytes (bytecode or source), enabling zero-copy / memory-mapped native
loading, plus hooks to configure the worker RuntimeConfig and run
one-time JS setup in the worker runtime. Also covers string-vs-URL
classification with {inline} and opt-in {allowData} data: URL
decoding, URL-object ToString coercion, and the relationship to the
standard Blob/createObjectURL web idiom (host-level, composed on top of
the resolver). Documentation only.

Reviewed By: avp

Differential Revision: D114087763
Summary:

Add IWorkerSetup and ISetWorkerSetup to
hermes-interfaces.h (an ICast-based setter with a
getWorkerSetup accessor), and wire HermesRuntimeImpl to store
the integrator's opaque provider pointer and expose it via that getter.
Give the APITest provider harness a virtual destructor and mark a
not-yet-used helper [[maybe_unused]] so the build is warning-free.

Changelog: Add IWorkerSetup

Differential Revision: D114374137
@meta-codesync meta-codesync Bot changed the title : Add IWorkerSetup runtime plumbing : Add IWorkerSetup runtime plumbing (#2123) Aug 3, 2026
@tmikov
tmikov force-pushed the export-D114374137 branch from d6f1119 to 886c03c Compare August 3, 2026 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant