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

Method newBool

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

Source from the content-addressed store, hash-verified

88}
89
90JSValueRef IJavaScriptContext::newBool(bool boolean) {
91 return boolean ? _trueValue.asUnretained() : _falseValue.asUnretained();
92}
93
94JSValueRef IJavaScriptContext::newNumber(int32_t number) {
95 return number == 0 ? _zeroValue.asUnretained() : onNewNumber(number);

Callers

nothing calls this directly

Calls 1

asUnretainedMethod · 0.80

Tested by

no test coverage detected