diff --git a/src/compile.rs b/src/compile.rs index 7194c88..2324ac3 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -975,7 +975,7 @@ impl Compiler { // Turn code object into function object: self.emit(Instruction::MakeFunction { - flags: bytecode::FunctionOpArg::empty(), + flags: bytecode::FunctionOpArg::IS_CLASS, }); self.emit(Instruction::LoadConst {