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

Method newNumber

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

Source from the content-addressed store, hash-verified

92JSValueRef IJavaScriptContext::newBool(bool boolean) {
93 return boolean ? _trueValue.asUnretained() : _falseValue.asUnretained();
94}
95
96JSValueRef IJavaScriptContext::newNumber(int32_t number) {
97 return number == 0 ? _zeroValue.asUnretained() : onNewNumber(number);
98}
99

Callers 15

TEST_PFunction · 0.80
valueToJSValueFunction · 0.80
makeJsContextIdFunction · 0.80
doOnAttributeChangeMethod · 0.80
runtimeInternStringMethod · 0.80
runtimeGetAttributeIdMethod · 0.80
runtimeCreateContextMethod · 0.80
runtimeMeasureContextMethod · 0.80
runtimeCreateCSSRuleMethod · 0.80

Calls 1

asUnretainedMethod · 0.80

Tested by 1

TEST_PFunction · 0.64