MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / check_node

Function check_node

tools/shared.py:339–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337@memoize
338@ToolchainProfiler.profile()
339def check_node():
340 try:
341 utils.run_process([*config.NODE_JS, '-e', 'console.log("hello")'], stdout=PIPE)
342 except Exception as e:
343 exit_with_error('the configured node executable (%s) does not seem to work, check the paths in %s (%s)', config.NODE_JS, config.EM_CONFIG, e)
344
345
346def generate_sanity():

Callers 2

perform_sanity_checksFunction · 0.85
nodeToIndexMethod · 0.85

Calls 2

exit_with_errorFunction · 0.85
run_processMethod · 0.80

Tested by

no test coverage detected