Improve consistency of prefixes

This commit is contained in:
Alex Crichton
2017-12-19 20:00:25 -08:00
parent d3387d591f
commit 91fddfd10f
2 changed files with 8 additions and 8 deletions

View File

@ -33,14 +33,14 @@ impl JsObject {
}
extern {
fn __wasm_bindgen_object_clone_ref(idx: u32) -> u32;
fn __wasm_bindgen_object_drop_ref(idx: u32);
fn __wbindgen_object_clone_ref(idx: u32) -> u32;
fn __wbindgen_object_drop_ref(idx: u32);
}
impl Clone for JsObject {
fn clone(&self) -> JsObject {
unsafe {
let idx = __wasm_bindgen_object_clone_ref(self.idx);
let idx = __wbindgen_object_clone_ref(self.idx);
JsObject { idx }
}
}
@ -49,7 +49,7 @@ impl Clone for JsObject {
impl Drop for JsObject {
fn drop(&mut self) {
unsafe {
__wasm_bindgen_object_drop_ref(self.idx);
__wbindgen_object_drop_ref(self.idx);
}
}
}