Counterbalancing using Batch session data
Hi,
I am sorry of this is a cross post, but I could not find it on the forum. I am counterbalancing in OSWEB using the batch session data. This works great and is a really nice feature. However, it only seems to work when I run the experiment in browser mode. When I run in in quick run, however, I get the following error:
ArrowFunction is not supported by ECMA 5.1.
As far as I know my OSWEB is up to date. Does this mean you can only implement this script as soon as your experiment is finished or is there another way around this?
Thanks in advance,
Dirk

Comments
Hi Dirk,
I am not familiar with OSWeb to give you a good answer, but I suppose the problem is indeed linked to the version of ECMA (or rather js2py). See here: https://osdoc.cogsci.nl/3.3/manual/osweb/javascript/
I suppose the counterbalancing is implemented using arrow functions, which were added in ECMA6.
But that is all based on Googling, @sebastiaan will need to confirm/correct what I am guessing here.
Hope this helps,
Eduard
Hi @jeboydirk ,
Yes, @eduard is correct: this is because the desktop version of OpenSesame only supports an older version of JavaScript/ ECMAScript. This is a limitation of js2py, the library used to transpile JavaScript to Python. This is no problem though, because you can simply use the test-in-browser option during development (instead of the regular quick run).
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!