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

Method isFromJsContext

valdi/src/valdi/runtime/JavaScript/JSValueRefHolder.cpp:61–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 auto lock = _context->lock();
60 doDispose(lock);
61}
62
63bool JSValueRefHolder::expired() const {
64 auto taskScheduler = _taskScheduler.lock();
65 return taskScheduler == nullptr || taskScheduler->isDisposed();
66}

Callers 1

unwrapJSValueIfNeededFunction · 0.80

Calls 2

getMethod · 0.65
getTaskSchedulerMethod · 0.45

Tested by

no test coverage detected