Browse Source

Feature prelude module (#1451)

pull/1470/head
Halid Odat 3 years ago committed by GitHub
parent
commit
8987dbf8d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      boa/src/lib.rs

7
boa/src/lib.rs

@ -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};

Loading…
Cancel
Save