Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit a26fe0c

Browse files
author
Alan Jeffrey
committed
WIP
1 parent e54b8af commit a26fe0c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/glue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ extern "C" {
233233
aHandler: *const ::libc::c_void)
234234
-> *mut JSObject;
235235
pub fn GetWindowProxyClass() -> *const Class;
236-
pub fn GetProxyReservedSlot(obj: *mut JSObject, slot: u32) -> JS::Value;
236+
pub fn GetProxyReservedSlot(obj: *mut JSObject, slot: u32, dest: *mut JS::Value);
237237
pub fn GetProxyPrivate(obj: *mut JSObject) -> Value;
238238
pub fn SetProxyReservedSlot(obj: *mut JSObject, slot: u32, val: *const JS::Value);
239239
pub fn SetProxyPrivate(obj: *mut JSObject, expando: *const JS::Value);

src/jsglue.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,10 @@ GetWindowProxyClass()
574574
return &WindowProxyClass;
575575
}
576576

577-
JS::Value
578-
GetProxyReservedSlot(JSObject* obj, uint32_t slot)
577+
void
578+
GetProxyReservedSlot(JSObject* obj, uint32_t slot, JS::Value* dest)
579579
{
580-
return js::GetProxyReservedSlot(obj, slot);
580+
*dest = js::GetProxyReservedSlot(obj, slot);
581581
}
582582

583583
void

0 commit comments

Comments
 (0)