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

Function run_js_tool

tools/shared.py:204–211  ·  view source on GitHub ↗

Execute a javascript tool. This is used by emcc to run parts of the build process that are implemented in javascript.

(filename, jsargs=[], node_args=[], **kw)

Source from the content-addressed store, hash-verified

202
203
204def run_js_tool(filename, jsargs=[], node_args=[], **kw): # noqa: B006
205 """Execute a javascript tool.
206
207 This is used by emcc to run parts of the build process that are
208 implemented in javascript.
209 """
210 command = [*config.NODE_JS, *node_args, filename, *jsargs]
211 return check_call(command, **kw).stdout
212
213
214def get_npm_cmd(name, missing_ok=False):

Callers

nothing calls this directly

Calls 1

check_callFunction · 0.85

Tested by

no test coverage detected