lichao0211 / jsunpack-n

Automatically exported from code.google.com/p/jsunpack-n
GNU General Public License v2.0
0 stars 0 forks source link

Spruious error: undefined variable #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. jsunpack http://dev.piwik.org/trac/export/3824/trunk/js/piwik.js

What is the expected output?
Benign. No errors.

What do you see instead?
Benign.
error: undefined variable hostName

What version of the product are you using? On what operating system?
http://jsunpack.jeek.org/dec/go

Please provide any additional information below.
It appears to be the use of hostName in the urlFixup() function in piwik.js 
triggering the error.  (This function, by itself, passes jsunpack.)

The same code appears to work in multiple browsers, and passes jslint.

Original issue reported on code.google.com by anthon.p...@gmail.com on 31 Jan 2011 at 2:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
(Deleted that last comment.)  The error disappears if I delete (comment out) 
the line that reads:  asyncTracker = new Tracker();

I'll try to get spidermonkey built on my dev box tonight.

Original comment by anthon.p...@gmail.com on 31 Jan 2011 at 3:55

GoogleCodeExporter commented 9 years ago
These error messages are to be expected in normal jsunpack output. The goal of 
the error being displayed is showing whenever jsunpack is unaware of some 
variable. In the future if you add a definition for hostName in pre.js, you 
might have better luck decoding something that requires it.

Original comment by urul...@gmail.com on 26 May 2011 at 3:36