Removing debug output, switch to normal
#![warn(clippy::perf)]
#![allow(clippy::cognitive_complexity)]
-use boa::{exec, exec::Executor, forward_val, realm::Realm};
+use boa::{exec::Executor, forward_val, realm::Realm};
use std::{fs::read_to_string, path::PathBuf};
use structopt::StructOpt;
@@ -23,7 +23,6 @@ pub fn main() -> Result<(), std::io::Error> {
let buffer = read_to_string(args.file)?;
- if args.shell {
let realm = Realm::create();
let mut engine = Executor::new(realm);
@@ -31,9 +30,6 @@ pub fn main() -> Result<(), std::io::Error> {
Ok(v) => print!("{}", v.to_string()),
Err(v) => eprint!("{}", v.to_string()),
}
- } else {
- dbg!(exec(&buffer));
- }
Ok(())
}
