MCPcopy Create free account
hub / github.com/nodejs/node / __init__

Method __init__

deps/v8/tools/run-wasm-api-tests.py:76–89  ·  view source on GitHub ↗
(self, name, outdir, tempdir)

Source from the content-addressed store, hash-verified

74
75class Runner(object):
76 def __init__(self, name, outdir, tempdir):
77 self.name = name
78 self.outdir = outdir
79 self.tempdir = tempdir
80 self.src_file_basename = os.path.join(WASM_PATH, "example", name)
81 self.dst_file_basename = os.path.join(tempdir, name)
82 self.lib_file = os.path.join(outdir, "obj", "libwee8.a")
83 if not os.path.exists(self.lib_file):
84 print("libwee8 library not found, make sure to pass the outdir as "
85 "first argument; see --help")
86 sys.exit(1)
87 src_wasm_file = self.src_file_basename + ".wasm"
88 dst_wasm_file = self.dst_file_basename + ".wasm"
89 shutil.copyfile(src_wasm_file, dst_wasm_file)
90
91 def _Error(self, step, lang, compiler, code):
92 print("Error: %s failed. To repro: tools/run-wasm-api-tests.py "

Callers

nothing calls this directly

Calls 4

printFunction · 0.70
joinMethod · 0.45
existsMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected