The W092 warning ("Wrap the /regexp/ literal in parens to disambiguate the slash operator.") appears two times in the JSHint source. Once is for return statements, like so:
function foo() {
return /[a-z]/.text("string");
}
The other time is for something to do with `yield`, however I cannot figure out how to produce the error using `yield`. Can someone please give me an example of what code would produce this error with a yield expression?
Thank you!