-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): added
Todo
placeholder type
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
use boa_engine::value::TryFromJs; | ||
use boa_gc::{custom_trace, Finalize, Trace}; | ||
use jstz_core::value::IntoJs; | ||
|
||
/// A placeholder for types that have yet to be defined | ||
#[derive(Debug)] | ||
pub enum Todo { | ||
Todo, | ||
} | ||
|
||
impl Finalize for Todo { | ||
fn finalize(&self) { | ||
todo!() | ||
} | ||
} | ||
|
||
#[allow(unused_variables)] | ||
unsafe impl Trace for Todo { | ||
custom_trace!(this, todo!()); | ||
} | ||
|
||
#[allow(unused_variables)] | ||
impl IntoJs for Todo { | ||
fn into_js( | ||
self, | ||
context: &mut boa_engine::prelude::Context<'_>, | ||
) -> boa_engine::prelude::JsValue { | ||
todo!() | ||
} | ||
} | ||
|
||
#[allow(unused_variables)] | ||
impl TryFromJs for Todo { | ||
fn try_from_js( | ||
value: &boa_engine::prelude::JsValue, | ||
context: &mut boa_engine::prelude::Context<'_>, | ||
) -> boa_engine::prelude::JsResult<Self> { | ||
todo!() | ||
} | ||
} |