MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / wrapSendMessage

Function wrapSendMessage

src/common/browser.js:139–141  ·  view source on GitHub ↗
(runtime, sendMessage)

Source from the content-addressed store, hash-verified

137 || resolve(response[0]) // result created in wrapResponse
138 );
139 const wrapSendMessage = (runtime, sendMessage) => (
140 wrapAsync(runtime, sendMessage, unwrapResponse)
141 );
142 /**
143 * 0 = non-async method or the entire group
144 * function = transformer like (originalObj, originalFunc): function

Callers

nothing calls this directly

Calls 1

wrapAsyncFunction · 0.85

Tested by

no test coverage detected