Feature prelude module
@@ -62,6 +62,13 @@ pub mod bytecompiler;
#[cfg(feature = "vm")]
pub mod vm;
+/// A convenience module that re-exports the most commonly-used Boa APIs
+pub mod prelude {
+ pub use crate::{
+ object::GcObject as JsObject, Context, JsBigInt, JsString, JsValue, Result as JsResult,
+ };
+}
+
use std::result::Result as StdResult;
pub(crate) use crate::{exec::Executable, profiler::BoaProfiler};
