SyntaxError: Octal literals are not allowed in strict mode
The error message is not technically correct. Octal, hex, decimal etc. are differences in morphology, not syntax. So it is a grammar error and, more specifically, it is a morphology error but it is not a syntax error.