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

Method onNewNumber

valdi/src/valdi/quickjs/QuickJSJavaScriptContext.cpp:499–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497 const auto& it = _weakReferences.find(static_cast<size_t>(number));
498 if (it == _weakReferences.end()) {
499 return newUndefined();
500 }
501
502 return toRetainedJSValueRef(JS_DupValue(_context, it->second));
503}
504

Callers

nothing calls this directly

Calls 2

JS_NewInt32Function · 0.85
JS_NewFloat64Function · 0.85

Tested by

no test coverage detected