[PATCH v9 09/11] jscript: Simplify get_flags to only check whether it's enumerable.