[PATCH 1/9] jscript: Simplify get_flags to only check whether it's enumerable.