MCPcopy
hub / github.com/cure53/DOMPurify / error

Function error

demos/lib/Mental.js:6933–6943  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

6931 var parseTreeOutput = '', converted, pos = 0, chr, index, result;
6932
6933 function error(str) {
6934 var e = new Error();
6935 throw {
6936 msg : str + (e.stack ? ' - ' + e.stack : ''),
6937 pos : pos,
6938 chr : typeof chr === 'undefined' ? '(end)' : chr,
6939 state : parseTreeOutput,
6940 text : code.slice(pos - 10, pos + 10),
6941 code : this.code
6942 };
6943 }
6944
6945 function execute(code) {
6946 var result;

Callers 15

initFunction · 0.85
MentalFunction · 0.85
asiFunction · 0.85
unicodeEscapeFunction · 0.85
keywordFunction · 0.85
semicolonFunction · 0.85
plusFunction · 0.85
multiCommentFunction · 0.85
regexFunction · 0.85
numberFunction · 0.85
hexFunction · 0.85
arrayOrAccessorCloseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…