brsanthu / proxy-vole

Automatically exported from code.google.com/p/proxy-vole

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

GoogleCodeExporter opened this issue · comments

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

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

  • Changed state: Fixed