Fix class scopes by modifying symboltable

This commit is contained in:
coolreader18 2019-09-07 01:29:11 -05:00
parent acce23b79b
commit d7f99dc7b1
2 changed files with 7 additions and 9 deletions

View file

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