MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / pos

Function pos

src/run_tests.mjs:43–45  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

41}
42
43function pos(index) {
44 return "line " + (input.slice(0, index).split("\n").length + 1)
45}
46
47let sandboxes = {}, anonId = 0
48

Callers 1

run_tests.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected