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

Method newLong

valdi/src/valdi/runtime/Interfaces/IJavaScriptContext.cpp:223–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 auto cachedValue = getObjectPropertyForIndex(cache.get(), cacheIndex, exceptionTracker);
222 if (!exceptionTracker) {
223 return cachedValue;
224 }
225
226 if (isValueUndefined(cachedValue.get())) {
227 cachedValue = newLongUncached(JavaScriptLong(value), exceptionTracker);
228 if (!exceptionTracker) {
229 return cachedValue;
230 }
231
232 setObjectPropertyIndex(cache.get(), cacheIndex, cachedValue.get(), exceptionTracker);
233 }

Callers

nothing calls this directly

Calls 1

JavaScriptLongClass · 0.70

Tested by

no test coverage detected