We are currently working on writing an extension for AE, however, we are running into bugs that we cannot explain.
In our code, we use the .filter method on an array. Something that should be possible in AE19 and above, and in fact, it works flawlessly - on some computers.
In the office we run 8 computers with AE, all running the newest updated AE2020 version, and on about half of them it works, where the other half says that .filter is undefined.
We tried reinstalling everything, tried it with/without extendscript toolkit, we tried it between different versions of windows and mac, but it appears to be completely random.
We had a look at the expression engine (legacy or JS) but that appears to only affect expressions as expected and not scripting.
So, bottom line, higher js commands like .filter seem to work, but depending on your system they sometimes appear to not be included in the scripting engine.
Does anyone have any clue as to what could cause such a discrepancy between installations?
Any help is very much appreciated
I knew they only upgraded the expression engine, not the scripting one. The question is why does filter work on some computers... On mine, it doesn't. And it shouldn't.
Maybe you have another script installed on some computers that uses a prototype filter() function. If a script is loaded in AE, you can use public variables and function from that inside another script. So you could even use a prototype method. That is the only scenario that i can think of.