MCPcopy Index your code
hub / github.com/nodejs/node / int

Function int

deps/v8/tools/windbg.js:154–163  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

152// We could use the conversion functions but it seems that doing the conversion
153// via toString is just as good and slightly more generic...
154function int(val) {
155 if (typeof val === 'number') {
156 return Number.isInteger(val) ? val : undefined;
157 }
158 if (typeof val === 'object') {
159 let n = parseInt(val.toString());
160 return isNaN(n) ? undefined : n;
161 }
162 return undefined;
163}
164
165function is_live_session() {
166 // Assume that there is a single session (not sure how to get multiple ones

Callers 15

get_openssl_versionFunction · 0.85
configure_nodeFunction · 0.85
configure_intlFunction · 0.85
configure_section_fileFunction · 0.85
PrintProgressMethod · 0.85
ProcessOptionsFunction · 0.85
cmake_configure_inFunction · 0.85
parse_version_tupleFunction · 0.85
mainFunction · 0.85
CheckMethod · 0.85
ProcessConfigOverridesFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by 9

PrintProgressMethod · 0.68
ProcessOptionsFunction · 0.68
ParseFunction · 0.68
_testMethod · 0.68
_list_test_filenamesMethod · 0.68