Fix class vs method scopes

This commit is contained in:
coolreader18 2019-09-05 00:27:16 -05:00
parent f98d54f09f
commit acce23b79b

View file

@ -975,7 +975,7 @@ impl<O: OutputStream> Compiler<O> {
// Turn code object into function object:
self.emit(Instruction::MakeFunction {
flags: bytecode::FunctionOpArg::empty(),
flags: bytecode::FunctionOpArg::IS_CLASS,
});
self.emit(Instruction::LoadConst {