Skip to content

Commit

Permalink
Implement both Module::deserialize and _unchecked for jsc
Browse files Browse the repository at this point in the history
  • Loading branch information
theduke committed May 23, 2023
1 parent 06f7308 commit 3ea5fdd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/api/src/jsc/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,18 +184,18 @@ impl Module {
}

pub unsafe fn deserialize_unchecked(
_engine: &impl AsEngineRef,
_bytes: impl IntoBytes,
engine: &impl AsEngineRef,
bytes: impl IntoBytes,
) -> Result<Self, DeserializeError> {
return Self::from_binary(_engine, &_bytes.into_bytes())
.map_err(|e| DeserializeError::Compiler(e));
Self::deserialize(engine, bytes)
}

pub unsafe fn deserialize(
_engine: &impl AsEngineRef,
_bytes: impl IntoBytes,
engine: &impl AsEngineRef,
bytes: impl IntoBytes,
) -> Result<Self, DeserializeError> {
unimplemented!();
return Self::from_binary(engine, &bytes.into_bytes())
.map_err(|e| DeserializeError::Compiler(e));
}

pub unsafe fn deserialize_from_file_unchecked(
Expand Down

0 comments on commit 3ea5fdd

Please sign in to comment.