May 3rd, 2020 at 2:15 AM
It's an ES6 problem, but it's a weird one. The error points to a for..of loop which is an addition in ES6 but it was added to FF in FF36, so well before your version.
That being said, for..of typically uses const instead of var, and const definitions changed in FF51, especially how they behave in loops specifically.
I'll look into it a little more later on, in the meanwhile may I suggest Microsoft Edge, the latest browser from your favourite computer company, Microsoft®, with Full ES6© compatibility? ;P
Alright. I think I know how to fix it. I hope it doesn't cause more errors, but it all has to do with how for..of loops are supposed to entirely kill their instance and start a new one for scoping on each iteration. It was addressed in FF51, but the problem is that the bug exists in every other iteratable-object loop, like for..in or foreach().
Now, I'm not too sure if my solution will fix it or completely create new bugs because ES6's variable types behave differently in different types of loops. Technically, all var, const, and let should work in a for..of loop, but I don't know if it'll break the script somewhere later down the road because of how I fix it. Scoping is a pain.
I'll need to reupload the script somewhere, so yeah bear with it for a bit xd
That being said, for..of typically uses const instead of var, and const definitions changed in FF51, especially how they behave in loops specifically.
I'll look into it a little more later on, in the meanwhile may I suggest Microsoft Edge, the latest browser from your favourite computer company, Microsoft®, with Full ES6© compatibility? ;P
Alright. I think I know how to fix it. I hope it doesn't cause more errors, but it all has to do with how for..of loops are supposed to entirely kill their instance and start a new one for scoping on each iteration. It was addressed in FF51, but the problem is that the bug exists in every other iteratable-object loop, like for..in or foreach().
Now, I'm not too sure if my solution will fix it or completely create new bugs because ES6's variable types behave differently in different types of loops. Technically, all var, const, and let should work in a for..of loop, but I don't know if it'll break the script somewhere later down the road because of how I fix it. Scoping is a pain.
I'll need to reupload the script somewhere, so yeah bear with it for a bit xd