MCPcopy Index your code
hub / github.com/nodejs/node / toJSON

Method toJSON

lib/internal/url.js:1156–1160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1154 }
1155
1156 toJSON() {
1157 // Updates to URLSearchParams are lazily propagated to URL, so we need to check we're in sync.
1158 this.#ensureSearchParamsUpdated();
1159 return this.#context.href;
1160 }
1161
1162 static canParse(url, base = undefined) {
1163 if (arguments.length === 0) {

Callers 2

benchToJSONFunction · 0.45
mainFunction · 0.45

Calls 1

Tested by

no test coverage detected