bigbadhacker / proxy-vole

Automatically exported from code.google.com/p/proxy-vole
0 stars 0 forks source link

Return of myIpAddress will treated by JavaxPacScriptParser as an object with following side effects. #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Try the short example script with the JavaxPacScriptParser
2. The return of myIpAddress will treated as an object
3. The split on an object will result in NaN
4. The RhinoPacScriptParser will handle the same script correct.

example script:
---------------
var myip = myIpAddress();
var octet = myip.split(".");
var ret = parseInt(octet[3]) % 7;
---------------

What is the expected output? What do you see instead?
The return of myIpAddress should treated as a string.

What version of the product are you using? On what operating system?
proxy-vole_20121203 windows

Please provide any additional information below.

Original issue reported on code.google.com by h...@hsyn.de on 25 Jul 2013 at 6:34

GoogleCodeExporter commented 9 years ago
Hi,
I tried this in the latest version and cannot reproduce this.
The small PAC script above will split the IP address and the parseInt does also 
work.

Please checkout the newest version that will be released tomorrow.

Best regards,
- Rossi

Original comment by rosstaus...@googlemail.com on 9 Dec 2013 at 10:18