Example: Iterating Sets
line 16
var myArr = [v for (v of mySet)];
my code:
var s_priceCatsArr = [ n for ( n of s_priceCats ) ];
This produces the error Uncaught SyntaxError: Unexpected token for
on Google Chrome Version 38.0.2125.111 m
Customise and control Google Chrome > Settings > About
tells me that my Google Chrome is up to date.
Am I doing something wrong or is this feature not supported?
UPDATE:
I went to chrome://flags
and ticked Enable Experimental JavaScript
. Then restarted my browser, but I still get the same error. I guess I'll just have to wait until that feature is added properly then... :(