Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[FIX]] Avoid crashing on invalid input (#3046)
A recent extension to the `instanceof` operator introduced logic that performed property access on the result of parsing the operator's right-hand expression operand. Because invalid code may not specify such an expression, this logic led to program crashes in response to the invalid syntax. Ensure that when the `instanceof` operator appears without a right-hand expression operand, JSHint reports a syntax error and exits gracefully.
- Loading branch information