I have some code which just does not do what is supposed to do. After inserting a lot of console.log
, it finally all boiled down to an eval that made a variable undefined.
The relevant segment of code is:
console.log(str);
console.log(typeof str);
console.log(str.length);
var ret = eval(str);
console.log(ret);
and the output from Firebug-console is
[[["index.php?page=Int_JobModule&methode=Page_EditJob&ro=1&id=20121218baasbw03","20121218baasbw03","dauervorgang plumperquatsch4711x"]]]
string
135
undefined
So, clearly, eval
has done this - but I can't figure out what's wrong there.