Skip to content

Commit

Permalink
Feature prelude module (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
HalidOdat committed Aug 15, 2021
1 parent 08eb767 commit 8987dbf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions boa/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 8987dbf

Please sign in to comment.