# pacparser

Source: https://findproxyforurl.net/engines/pacparser/ · last updated 2026-10-15

Used by: pactester, python pacparser, old findproxyforurl.net backend.


## pacparser ≤ 1.4 (<=1.4.6)

Old JavaScript engine (SpiderMonkey 1.7) with ES3 syntax only: let, const and arrow functions make the file fail.


- alert() output: error. alert() is not defined before 1.5.1, so calling it throws. (source: lab, verified 2026-10-04)
- Non-ASCII result rejected: false (source: code, verified 2026-10-04)
- DNS lookups: sync (source: code, verified 2026-10-04)
- dnsResolve is IPv4 only: true (source: code, verified 2026-10-04)
- JavaScript level accepted: 3. SpiderMonkey 1.7 accepts ES3 syntax only; the checker approximates it with an ES3 parser. (source: doc, verified 2026-10-04)
- Calls FindProxyForURLEx if defined: true (source: code, verified 2026-10-04)
- Microsoft *Ex functions: true (source: doc, verified 2026-10-04)
- Global variables persist between calls: true (source: code, verified 2026-10-04)
- International host names passed in punycode (xn--): false. pactester passes the host as you give it. A Unicode name stays Unicode, so a test can match there that never matches in a browser. (source: lab, verified 2026-10-15)
- Host lower-cased by the engine: false (source: code, verified 2026-10-04)
- myIpAddress() source: user_supplied (source: code, verified 2026-10-04)
- Functions built into the engine (native): dnsResolve, myIpAddress, dnsResolveEx, myIpAddressEx (source: doc, verified 2026-10-04)
- On exception: error (source: code, verified 2026-10-04)
- On non-string / undefined result: stringify. A missing return value becomes the string "undefined". (source: code, verified 2026-10-04)
- URL passed to FindProxyForURL: none (source: code, verified 2026-10-04)

## pacparser ≥ 1.5.1 (>=1.5.1)

QuickJS-ng engine: modern JavaScript syntax, alert() and console.log(). Version 1.5.0 behaves the same except that alert() is missing.


- alert() output: console (source: code, verified 2026-10-04)
- JavaScript level accepted: latest (source: doc, verified 2026-10-04)
- Functions built into the engine (native): dnsResolve, myIpAddress, dnsResolveEx, myIpAddressEx, alert (source: code, verified 2026-10-04)
