SCRIPT1010: Expected identifier
The error was only present in Internet Explorer 7 and 8, was a little unhelpful to say the least, and was showing to be occuring in a bit of code similar to the below:
myObject.class = 'myClass';
‘class‘ was a custom property of the ‘myObject‘ object that I had named myself and was using to store a value.
The problem turned out to be that the word ‘class‘ is a reserved word in earlier versions of IE and therefore can’t be used when trying to store custom variables. I’d heard of using ‘className‘ before, but not ‘class‘.
After renaming the object’s property the script started to work immediately.