function hasProp(obj) {
  for (var _ in obj) { return true }
  return false
}
Validate the flags part of a given RegExpLiteral.

@param {RegExpValidationState} state The state to validate RegExp.
@returns {void}