0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-26 09:13:46 -05:00

Fix Module::get_module_namespace() doc comment (#219)

This commit is contained in:
Ben Noordhuis 2020-01-17 14:01:19 +01:00 committed by Ry Dahl
parent 8741681256
commit 52b8bbaf82

View file

@ -176,7 +176,9 @@ impl Module {
unsafe { v8__Module__GetIdentityHash(self) }
}
/// Returns the identity hash for this object.
/// Returns the namespace object of this module.
///
/// The module's status must be at least kInstantiated.
pub fn get_module_namespace(&mut self) -> Local<Value> {
unsafe { Local::from_raw(v8__Module__GetModuleNamespace(self)).unwrap() }
}