| alert() output | netlog code, verified 2026-10-04 | console code, verified 2026-10-04 | console alert() is not defined before 1.5.1, so calling it throws. code, verified 2026-10-04 | ignored alert() exists and returns false, so calling it does not stop the script. lab, verified 2026-10-11 | ignored alert() exists and returns false, so calling it does not stop the script. lab, verified 2026-10-11 |
|---|
| Non-ASCII result rejected | true code, verified 2026-10-04 | false The returned string is used as is; non-ASCII characters are not rejected. code, verified 2026-10-04 | false code, verified 2026-10-04 | false Non-ASCII characters in the result are accepted. lab, verified 2026-10-11 | false Non-ASCII characters in the result are accepted. lab, verified 2026-10-11 |
|---|
| shExpMatch is case-sensitive | n/a | n/a | n/a | true shExpMatch compares case-sensitively and knows only * and ?. Characters such as [ ] + ( ) $ | are taken literally, so some patterns match differently from Chrome. lab, verified 2026-10-11 | true shExpMatch compares case-sensitively and knows only * and ?. Characters such as [ ] + ( ) $ | are taken literally, so some patterns match differently from Chrome. lab, verified 2026-10-11 |
|---|
| DNS lookups | async Chrome and Edge stop the script at each name whose DNS answer is not at hand and run it again from the start once the answer is in. The answers of one request are kept in a table, so a repeated lookup of the same name is free, but after 20 different names every further lookup fails at once (dnsResolve returns null). The checker answers from your DNS table and runs the script once (code, Chromium 155; measured in Chromium 145 and Edge 155, 2026-10-14, and with the browser's own DNS client on 2026-10-15). lab, verified 2026-10-15 | sync The script runs once and waits on each lookup. Firefox keeps no table of its own in the PAC engine; repeats are answered from the browser's DNS cache, which keeps an answer for as long as the DNS record allows on Windows and for 60 s on Linux and macOS, then serves it up to 600 s longer while it refreshes, and keeps a failure for 60 s (code, Firefox 157; measured 2026-10-14). code, verified 2026-10-14 | sync code, verified 2026-10-04 | sync The script runs once and waits on each DNS call. Windows keeps no table of names during one run: answers that arrive are kept by the Windows DNS cache for as long as the DNS record allows, so repeats are cheap, but when the DNS server does not answer, every call waits about 12 s again, even inside one run (measured on Windows 11, 2026-10-14). lab, verified 2026-10-14 | sync The script runs once and waits on each DNS call. Windows keeps no table of names during one run: answers that arrive are kept by the Windows DNS cache for as long as the DNS record allows, so repeats are cheap, but when the DNS server does not answer, every call waits about 12 s again, even inside one run (measured on Windows 11, 2026-10-15). A request runs the script twice in a row, and so waits twice (24 s for one such lookup), when it makes the program download the PAC file, which is the first request and the first one after Windows has dropped the file (in the lab after about 6 minutes without use), and when Windows downloads any PAC file while the request's script is running (lab, 2026-10-16). lab, verified 2026-10-16 |
|---|
| dnsResolve is IPv4 only | true code, verified 2026-10-04 | false Whether dnsResolve can return IPv6 addresses in current Firefox has not been checked. expert, unverified | true code, verified 2026-10-04 | true dnsResolve returns only IPv4 addresses, and it returns false, not null, when a name does not resolve. lab, verified 2026-10-11 | true dnsResolve returns only IPv4 addresses, and it returns false, not null, when a name does not resolve. lab, verified 2026-10-11 |
|---|
| JavaScript level accepted | latest code, verified 2026-10-04 | latest code, verified 2026-10-04 | latest SpiderMonkey 1.7 accepts ES3 syntax only; the checker approximates it with an ES3 parser. doc, verified 2026-10-04 | 2017 About ES2017: let, const, arrow functions, classes, template strings and array spread work. Optional chaining (?.), ?? , object spread {...o}, BigInt and newer regular expression syntax are syntax errors, and then the whole file fails to load. lab, verified 2026-10-11 | 2017 About ES2017: let, const, arrow functions, classes, template strings and array spread work. Optional chaining (?.), ?? , object spread {...o}, BigInt and newer regular expression syntax are syntax errors, and then the whole file fails to load. lab, verified 2026-10-11 |
|---|
| Calls FindProxyForURLEx if defined | false code, verified 2026-10-04 | false code, verified 2026-10-04 | true code, verified 2026-10-04 | true If the file defines FindProxyForURLEx, Windows calls it instead of FindProxyForURL. A file with only FindProxyForURLEx works too. lab, verified 2026-10-11 | true If the file defines FindProxyForURLEx, Windows calls it instead of FindProxyForURL. A file with only FindProxyForURLEx works too. lab, verified 2026-10-11 |
|---|
| Microsoft *Ex functions | true code, verified 2026-10-04 | false code, verified 2026-10-04 | true doc, verified 2026-10-04 | true dnsResolveEx, isInNetEx, isResolvableEx, sortIpAddressList and myIpAddressEx are available. lab, verified 2026-10-11 | true dnsResolveEx, isInNetEx, isResolvableEx, sortIpAddressList and myIpAddressEx are available. lab, verified 2026-10-11 |
|---|
| Global variables persist between calls | true code, verified 2026-10-04 | true expert, unverified | true code, verified 2026-10-04 | true Global variables keep their values from one call to the next. lab, verified 2026-10-11 | true Global variables keep their values from one call to the next. lab, verified 2026-10-11 |
|---|
| International host names passed in punycode (xn--) | true The host reaches the script in its ASCII form: an internationalised name such as Bücher.example arrives as xn--bcher-kva.example, in lower case, and so does the host part of url. A test against the Unicode spelling never matches; write the punycode form (measured in Chrome 155, Edge 155 and Chromium 145, 2026-10-15). lab, verified 2026-10-15 | true The host reaches the script in its ASCII form: an internationalised name such as Bücher.example arrives as xn--bcher-kva.example, in lower case, and so does the host part of url (measured in Firefox 157, 2026-10-15). lab, verified 2026-10-15 | 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. lab, verified 2026-10-15 | true An internationalised host name reaches the script in its ASCII (punycode) form and in lower case, even though WinHTTP keeps the case of plain ASCII host names. The other labels of such a name are lower-cased too, so BÜCHER.Example.COM arrives as xn--bcher-kva.example.com (Windows 11, lab, October 2026). lab, verified 2026-10-15 | true An international host name such as bücher.example reaches the script in its ASCII form, xn--bcher-kva.example, in lower case. The other labels of the name are lower-cased too. lab, verified 2026-10-15 |
|---|
| IPv6 host passed in brackets | n/a | n/a | n/a | true An IPv6 host reaches the script in brackets, for example [2001:db8::1]. lab, verified 2026-10-11 | true An IPv6 host reaches the script in brackets, for example [2001:db8::1]. lab, verified 2026-10-15 |
|---|
| IPv6 address keeps its letter case | n/a | n/a | n/a | n/a | true An IPv6 address keeps its letters as written, for example [FD00::A1], although host names are lower-cased. lab, verified 2026-10-15 |
|---|
| Host lower-cased by the engine | true The host reaches the script in lower case, whatever case the address had, also for IPv6 addresses (FD00::A1 becomes fd00::a1, without brackets). In the url argument the scheme and host part are lower-case too, but the path and query keep their case (measured in Chrome 155, Edge 155 and Chromium 145, 2026-10-15). lab, verified 2026-10-15 | true The host reaches the script in lower case, whatever case the address had, also for IPv6 addresses (FD00::A1 becomes fd00::a1, without brackets). The host part of the url argument is lower-case too, but a user name and password written before the host keep their case (https://UsEr:PaSs@Example.com/ reaches the script as https://UsEr:PaSs@example.com/); Firefox removes the path anyway (measured in Firefox 157, 2026-10-15). lab, verified 2026-10-15 | false code, verified 2026-10-04 | false The host keeps the case it had in the request, for example Example.COM, so a case-sensitive test such as dnsDomainIs can miss it. lab, verified 2026-10-15 | true WinINet, .NET and Java lower-case the host, and the scheme and host part of the URL, before the script runs. The path keeps its case. lab, verified 2026-10-15 |
|---|
| Largest PAC file accepted (bytes) | n/a | n/a | n/a | 1048576 A PAC file larger than about 1 MiB is rejected. lab, verified 2026-10-11 | 1048576 A PAC file larger than about 1 MiB is rejected. lab, verified 2026-10-11 |
|---|
| myIpAddress() source | routing_ipv4 The local address of the route towards the internet (8.8.8.8), whatever the destination. Adapter type and adapter order play no part; 127.0.0.1 when nothing is found. lab, verified 2026-10-14 | routing_ipv4 The local address of the route towards the internet (8.8.8.8). For a URL whose host is an IP address, the route towards that address, so requests from one page can get different answers. lab, verified 2026-10-14 | user_supplied code, verified 2026-10-04 | first_adapter_by_metric The address of the first adapter in Windows' order, which is set by the interface metric, not the adapter with the route to the internet. 169.254.x.x addresses are skipped while another address exists. lab, verified 2026-10-14 | first_adapter_by_metric The address of the first adapter in Windows' order, which is set by the interface metric, not the adapter with the route to the internet. 169.254.x.x addresses are skipped while another address exists. lab, verified 2026-10-14 |
|---|
| Functions built into the engine (native) | alert, myIpAddress, dnsResolve, isPlainHostName, dnsResolveEx, myIpAddressEx, sortIpAddressList, isInNetEx Read from the current Chromium source; assumed to be the same in old versions. code, verified 2026-10-04 | dnsResolve, myIpAddress, alert code, verified 2026-10-04 | dnsResolve, myIpAddress, dnsResolveEx, myIpAddressEx, alert code, verified 2026-10-04 | isPlainHostName, dnsDomainIs, localHostOrDomainIs, isResolvable, isInNet, dnsResolve, myIpAddress, dnsDomainLevels, shExpMatch, weekdayRange, dateRange, timeRange, alert, isResolvableEx, isInNetEx, dnsResolveEx, myIpAddressEx, sortIpAddressList, getClientVersion All 19 PAC functions, including the Microsoft *Ex functions, are built into the engine. The checker imitates them from the measured results. lab, verified 2026-10-11 | isPlainHostName, dnsDomainIs, localHostOrDomainIs, isResolvable, isInNet, dnsResolve, myIpAddress, dnsDomainLevels, shExpMatch, weekdayRange, dateRange, timeRange, alert, isResolvableEx, isInNetEx, dnsResolveEx, myIpAddressEx, sortIpAddressList, getClientVersion All 19 PAC functions, including the Microsoft *Ex functions, are built into the engine. The checker imitates them from the measured results. lab, verified 2026-10-11 |
|---|
| On exception | direct code, verified 2026-10-04 | direct If FindProxyForURL throws, the request goes DIRECT. code, verified 2026-10-04 | error code, verified 2026-10-04 | error If the script throws an error, the program that asked for a proxy gets an error instead of an answer. Browsers go DIRECT in this case. lab, verified 2026-10-11 | error If the script throws an error, the program that asked for a proxy gets an error instead of an answer. Browsers go DIRECT in this case. lab, verified 2026-10-11 |
|---|
| On non-string / undefined result | direct code, verified 2026-10-04 | direct A result that is not a string (for example a missing return) makes the request go DIRECT. code, verified 2026-10-04 | stringify A missing return value becomes the string "undefined". code, verified 2026-10-04 | stringify A result that is not a string is turned into text and read as a proxy list. undefined, null or a number give no usable entry, so the connection goes direct; an array such as ["PROXY a:1"] works. lab, verified 2026-10-11 | stringify A result that is not a string is turned into text and read as a proxy list. undefined, null or a number give no usable entry, so the connection goes direct; an array such as ["PROXY a:1"] works. lab, verified 2026-10-11 |
|---|
| How the returned string is read | n/a | n/a | n/a | windows Windows reads the returned string loosely. An entry that contains DIRECT anywhere becomes DIRECT, so a missing ';' before DIRECT sends traffic direct. Lower-case keywords are skipped, a missing port becomes 80, and SOCKS5 is misread. The checker shows the list Windows actually uses. lab, verified 2026-10-11 | windows Windows reads the returned string loosely. An entry that contains DIRECT anywhere becomes DIRECT, so a missing ';' before DIRECT sends traffic direct. Lower-case keywords are skipped, a missing port becomes 80, and SOCKS5 is misread. The checker shows the list Windows actually uses. lab, verified 2026-10-11 |
|---|
| Proxy keywords understood | n/a | n/a | n/a | PROXY, HTTPS, SOCKS, DIRECT HTTP is not a keyword here. SOCKS5 and SOCKS4 are read as SOCKS followed by a broken host name. lab, verified 2026-10-11 | PROXY, HTTPS, SOCKS, DIRECT HTTP is not a keyword here. SOCKS5 and SOCKS4 are read as SOCKS followed by a broken host name. lab, verified 2026-10-11 |
|---|
| Answer reused per host | n/a | n/a | n/a | per_host Windows reuses an answer for a host for later addresses on the same host, even when the path or the port differs, so a rule on the path is not checked again for each address. In the lab the script ran for the first two addresses on a host; later addresses on that host, also on another port, got the second answer. lab, verified 2026-10-11 | per_host A program reuses the answer for a host for its later http requests to that host, even when the path or the port differs, so a rule on the path is not checked again. In the lab the script ran for the first request to a host; later http requests to that host, also on another port and from a new connection handle in the same program, got that first answer. https requests and other hosts ran the script again. The answers are kept until the PAC file is downloaded again, which in the lab happened on one schedule for all programs, about every 10 to 11 minutes (once not for 22 minutes), so the first new download came between about 1 and 11 minutes after a program started; at that moment every kept answer is dropped, however recently it was used. Windows also forgets the file of a program that has not used it for about 6 to 7 minutes (a request or one of the scheduled downloads counts as use; up to 5.5 minutes it was always kept), and at a scheduled download it downloads only some of the files again and forgets the rest; the next request of such a program downloads the file itself. Programs that use the same PAC address share one loaded copy of the script. The caching headers of the PAC file (Cache-Control, Expires, Last-Modified) made no difference: the files of all programs were downloaded again at the same moments, always in full; only a program's own download sometimes asked whether the file had changed, and a changed file was downloaded in full and used at once (October 2026). lab, verified 2026-10-16 |
|---|
| Time limit for the script | n/a | n/a | n/a | none There is no time limit for the script. In the lab, a script with an endless loop blocked the program that asked for a proxy for more than 18 minutes, until it was stopped by hand. lab, verified 2026-10-11 | none There is no time limit for the script. In the lab, a script with an endless loop blocked the program that asked for a proxy for more than 18 minutes, until it was stopped by hand. lab, verified 2026-10-11 |
|---|
| dateRange() and timeRange() | n/a | n/a | n/a | always_false dateRange() and timeRange() return false for every form of argument, even for calls that cover the current date or time such as dateRange(2020, 2030) or timeRange(0, 24). A rule that depends on them never applies. lab, verified 2026-10-11 | always_false dateRange() and timeRange() return false for every form of argument, even for calls that cover the current date or time such as dateRange(2020, 2030) or timeRange(0, 24). A rule that depends on them never applies. lab, verified 2026-10-11 |
|---|
| URL passed to FindProxyForURL | https_path_query For https:// and wss:// URLs the script sees only scheme, host and port, for example https://www.example.com/. For http:// URLs the path and the query reach the script. A user name and password and the #fragment are always removed (measured in Chromium 145, Edge 155 and Chrome 155, 2026-10-15). lab, verified 2026-10-15 | all_path_query Firefox removes the path, the query and the #fragment for every scheme, http as well as https, so the script sees only scheme://host:port/. A user name and password written before the host are not removed: in https://user:pw@host/ the script sees https://user:pw@host/ (measured in Firefox 157 and 140 ESR, and in Firefox 156 and 157 on Windows, 2026-10-12). lab, verified 2026-10-12 | none code, verified 2026-10-04 | https_to_origin For https:// URLs the script sees only scheme, host and port, for example https://www.example.com:8443/. http:// URLs reach the script with path, query and #fragment. A user name and password written before the host are removed for every scheme (measured on Windows 11, 2026-10-11 and 2026-10-12). lab, verified 2026-10-12 | https_to_origin For https:// URLs the script sees only scheme, host and port, for example https://www.example.com:8443/. http:// URLs reach the script with path, query and #fragment. A user name and password written before the host are removed for every scheme (measured with a WinINet program, October 2026). lab, verified 2026-10-15 |
|---|
| weekdayRange() day names | n/a | n/a | n/a | upper_case_only weekdayRange() works, also across the weekend such as weekdayRange("FRI", "MON"), but only with upper-case day names. weekdayRange("mon", "fri") throws an error, which stops the script, and a mixed-case name such as "Sun" returns false. lab, verified 2026-10-11 | upper_case_only weekdayRange() works, also across the weekend such as weekdayRange("FRI", "MON"), but only with upper-case day names. weekdayRange("mon", "fri") throws an error, which stops the script, and a mixed-case name such as "Sun" returns false. lab, verified 2026-10-11 |
|---|