android_mt6572_jiabo/external/chromium-libpac/test/js-unittest/side_effects.js
2025-09-05 16:56:03 +08:00

10 lines
214 B
JavaScript

if (!gCounter) {
// We write it this way so if the script gets loaded twice,
// gCounter remains dirty.
var gCounter = 0;
}
function FindProxyForURL(url, host) {
return "PROXY sideffect_" + gCounter++;
}