MCPcopy Index your code
hub / github.com/pyscript/pyscript / syntaxError

Function syntaxError

core/src/config.js:56–60  ·  view source on GitHub ↗
(type, url, { message })

Source from the content-addressed store, hash-verified

54const relative_url = (url, base = location.href) => new URL(url, base).href;
55
56const syntaxError = (type, url, { message }) => {
57 let str = `(${BAD_CONFIG}): Invalid ${type}`;
58 if (url) str += ` @ ${url}`;
59 return new SyntaxError(`${str}\n${message}`);
60};
61
62const configs = new Map();
63

Callers 1

config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected