1// PAC script with getter that changes element kind. 2 3function FindProxyForURL(url, host) { 4 let arr = []; 5 arr[1000] = 0x1234; 6 7 arr.__defineGetter__(256, function () { 8 delete arr[256]; 9 arr.unshift(1.1); 10 }); 11 12 let results = Object.entries(arr); 13 let str = results.toString(); 14 return "DIRECT"; 15} 16