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

Function localFile

src/utility.mjs:239–242  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

237// Returns an absolute path for a file, resolving it relative to this script
238// (i.e. relative to the src/ directory).
239export function localFile(filename) {
240 assert(!path.isAbsolute(filename));
241 return path.join(srcDir, filename);
242}
243
244// Helper function for JS library files that can be used to read files
245// relative to the src/ directory.

Callers 5

getSystemIncludeFileFunction · 0.90
makeRemovedFSAssertFunction · 0.90
modules.mjsFile · 0.90
readFunction · 0.85
loadDefaultSettingsFunction · 0.85

Calls 2

assertFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected