Skip to content

Commit 2426f11

Browse files
committed
Always insert None at code_stack.constants
1 parent e02afc4 commit 2426f11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/codegen/src/compile.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,10 @@ impl Compiler {
11071107

11081108
let (doc_str, body) = split_doc(body);
11091109

1110+
self.current_codeinfo()
1111+
.constants
1112+
.insert_full(ConstantData::None);
1113+
11101114
self.compile_statements(body)?;
11111115

11121116
// Emit None at end:

0 commit comments

Comments
 (0)