mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-25 15:29:43 -05:00
Fix Module::get_module_namespace() doc comment (#219)
This commit is contained in:
parent
8741681256
commit
52b8bbaf82
1 changed files with 3 additions and 1 deletions
|
@ -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() }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue