Fix unittest

This commit is contained in:
Windel Bouwman
2018-09-02 12:18:03 +02:00
parent 8b3a95c562
commit fd805cb2ce

View File

@@ -841,7 +841,7 @@ mod tests {
use super::Compiler;
fn compile_exec(source: &str) -> CodeObject {
let mut compiler = Compiler::new();
compiler.push_new_code_object(Option::None);
compiler.push_new_code_object(Option::None, "<module>".to_string());
let ast = parser::parse_program(&source.to_string()).unwrap();
compiler.compile_program(&ast);
compiler.pop_code_object()