mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Functions declared with a /** @remote */ JSDoc (or const/for-of bindings so tagged) are treated like itremote/remotely: any closure passed to them is checked for imports that don't come from ./lib/remote-tools. api-net.spec.ts's itUtility stringifies its closure and posts it to a utility-process fixture, so it's the same __vite_ssr_import_ problem. - itUtility now runs rewriteForRemoteEval(fn) before posting - the fixture declares a local __rt spreading net-helpers + electron/main - the for-of loop that aliases itUtility as 'test' is tagged @remote - remote-tools.ts re-exports net, session, http, defer, and the net-helpers - api-net.spec.ts imports those via remote-tools (closure bodies unchanged) api-net: 252 passed / 2 todo.