MCPcopy Index your code
hub / github.com/mozilla/source-map / forEachNewline

Function forEachNewline

test/test-source-node.js:15–20  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13const SourceNode = require("../lib/source-node").SourceNode;
14
15function forEachNewline(fn) {
16 return async function (assert) {
17 await fn(assert, "\n");
18 await fn(assert, "\r\n");
19 };
20}
21
22exports["test .add()"] = function (assert) {
23 const node = new SourceNode(null, null, null);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…