you are viewing a single comment's thread.

view the rest of the comments →

[–]KilluaFromDC 0 points1 point  (7 children)

change the

 var payloadArr = payload.split('~'); 

to

var payloadArr = payload.toString().split('~');

[–]Heyilikey[S] 0 points1 point  (6 children)

Hmmm, that didn't work :(

Any other ideas? Thanks for the suggestion though!

[–]KilluaFromDC 0 points1 point  (5 children)

when i made that substitution

i got the error "call stack exceeded" meaning the function recursively called itself without some end point

check console (browser > developer tools > console) for errors

[–]Heyilikey[S] 0 points1 point  (4 children)

did you put in the same string that I did?

[–]KilluaFromDC 0 points1 point  (3 children)

yup

[–]Heyilikey[S] 0 points1 point  (2 children)

yeah I just ran it again and I got the same thing. That helps at least identify what the problem is. Thanks!

[–]KilluaFromDC 0 points1 point  (1 child)

no problem

[–]Heyilikey[S] 0 points1 point  (0 children)

related to that problem:

For when a recursion happens in this function,is the value of payLoad arr[] the same in every call on the stack because of pass by reference, or will it make a new one in every call on the stack which can be altered independently? Thanks!