MCPcopy
hub / github.com/segment-boneyard/nightmare / forward

Function forward

lib/runner.js:725–733  ·  view source on GitHub ↗

* Forward events

(name)

Source from the content-addressed store, hash-verified

723 */
724
725 function forward(name) {
726 return function(_event) {
727 // NOTE: the raw Electron event used to be forwarded here, but we now send
728 // an empty event in its place -- the raw event is not JSON serializable.
729 if (!closed) {
730 parent.emit.apply(parent, [name, {}].concat(sliced(arguments, 1)))
731 }
732 }
733 }
734})

Callers 1

runner.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected