diff --git a/prism/prism.c b/prism/prism.c index 1f63b89e54..55f7eb22c5 100644 --- a/prism/prism.c +++ b/prism/prism.c @@ -21797,7 +21797,7 @@ pm_parser_init(pm_parser_t *parser, const uint8_t *source, size_t size, const pm pm_parser_warn_shebang_carriage_return(parser, parser->start, length); if (newline != NULL) parser->encoding_comment_start = newline + 1; search_shebang = false; - } else { + } else if (!parser->parsing_eval) { search_shebang = true; } }