diff --git a/boa_cli/Cargo.toml b/boa_cli/Cargo.toml
index e935099884..97966ca111 100644
--- a/boa_cli/Cargo.toml
+++ b/boa_cli/Cargo.toml
@@ -12,7 +12,7 @@ repository.workspace = true
rust-version.workspace = true
[dependencies]
-boa_engine = { workspace = true, features = ["deser", "console"] }
+boa_engine = { workspace = true, features = ["deser", "console", "flowgraph"] }
boa_ast = { workspace = true, features = ["serde"]}
boa_parser.workspace = true
rustyline = "10.0.0"
diff --git a/boa_cli/src/main.rs b/boa_cli/src/main.rs
index 928c4ca752..57f3cf3860 100644
--- a/boa_cli/src/main.rs
+++ b/boa_cli/src/main.rs
@@ -61,7 +61,10 @@
mod helper;
use boa_ast::StatementList;
-use boa_engine::Context;
+use boa_engine::{
+ vm::flowgraph::{Direction, Graph},
+ Context, JsResult,
+};
use clap::{Parser, ValueEnum, ValueHint};
use colored::{Color, Colorize};
use rustyline::{config::Config, error::ReadlineError, EditMode, Editor};
@@ -95,18 +98,40 @@ struct Opt {
short = 'a',
value_name = "FORMAT",
ignore_case = true,
- value_enum
+ value_enum,
+ conflicts_with = "graph"
)]
#[allow(clippy::option_option)]
dump_ast: Option