Many errors are now ignored when not in strict mode so we can still parse files that have been written by broken/incomplete implementations.
Make sure we detect the error and don't crash.