MCPcopy Create free account
hub / github.com/Snapchat/Valdi / doSetHostOnMessage

Method doSetHostOnMessage

valdi/src/valdi/runtime/JavaScript/JavaScriptWorker.cpp:113–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 Value(makeShared<ValueFunctionWithCallable>(postMessageFunc)));
112 auto closeFunc = [weakSelf](const ValueFunctionCallContext& callContext) -> Value {
113 auto self = weakSelf.lock();
114 if (self) {
115 self->close();
116 }
117 return Value::undefined();
118 };

Callers 1

setHostOnMessageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected