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

Method workerSetOnMessage

valdi/src/valdi/runtime/JavaScript/JavaScriptRuntime.cpp:2173–2180  ·  view source on GitHub ↗

worker.onmessage = func

Source from the content-addressed store, hash-verified

2171 assetsArray.get(), i++, wrappedObject.get(), callContext.getExceptionTracker());
2172 CHECK_CALL_CONTEXT(callContext);
2173 } break;
2174 case AssetSpecsType::FONT: {
2175 callContext.getContext().setObjectPropertyIndex(
2176 assetsArray.get(), i++, pathResult.get(), callContext.getExceptionTracker());
2177 CHECK_CALL_CONTEXT(callContext);
2178 } break;
2179 case AssetSpecsType::UNKNOWN:
2180 break;
2181 }
2182 }
2183

Callers

nothing calls this directly

Calls 4

setHostOnMessageMethod · 0.80
newUndefinedMethod · 0.80
getContextMethod · 0.45

Tested by

no test coverage detected