Do not create coverage calls on array accessors.

This commit is contained in:
Wolfgang Bumiller 2014-01-07 15:01:52 +01:00
parent 4ff68e07e8
commit 792c1afd95

View file

@ -4407,6 +4407,7 @@ static bool parser_create_array_accessor(parser_t *parser, ast_value *array, con
parseerror(parser, "failed to create accessor function value"); parseerror(parser, "failed to create accessor function value");
return false; return false;
} }
fval->expression.flags &= ~(AST_FLAG_COVERAGE_MASK);
func = ast_function_new(ast_ctx(array), funcname, fval); func = ast_function_new(ast_ctx(array), funcname, fval);
if (!func) { if (!func) {