Automatic Semicolon Insertion hides an error here by transforming a long ReturnStatement into a ReturnStatement followed by an ExpressionStatement that is never reached. The conditions on the second line are thus never tested.