Please sign in to comment.
[[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...
Showing with 12 additions and 0 deletions.