mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
no-locals is stricter than plain @remote: closures may not reference ANY identifier declared in the file (imports from anywhere, or file-scope const/let/var/function/class). JS/DOM globals are fine. Applied to callWithBindings in api-context-bridge.spec.ts, whose closures are executeJavaScript'd in a page world with no __rt shim and no require.