Remove JavaScript global surrealdb placeholder package
This commit is contained in:
parent
890f2f527f
commit
9c0fbf51f9
3 changed files with 0 additions and 9 deletions
|
@ -1,2 +1 @@
|
|||
pub mod surrealdb;
|
||||
pub mod fetch;
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#[js::bind(object, public)]
|
||||
#[quickjs(rename = "surrealdb")]
|
||||
#[allow(non_upper_case_globals)]
|
||||
pub mod package {
|
||||
pub const version: &str = env!("CARGO_PKG_VERSION");
|
||||
}
|
|
@ -37,8 +37,6 @@ pub async fn run(
|
|||
let res: Result<Promise<Value>, js::Error> = ctx.with(|ctx| {
|
||||
// Get the context global object
|
||||
let global = ctx.globals();
|
||||
// Register the surrealdb module as a global object
|
||||
global.init_def::<globals::surrealdb::Package>().unwrap();
|
||||
// Register the fetch function as a global object
|
||||
global.init_def::<globals::fetch::Fetch>()?;
|
||||
// Register the Duration type as a global class
|
||||
|
|
Loading…
Reference in a new issue