mirror of
https://github.com/servo/servo
synced 2026-04-30 03:17:15 +02:00
Use u32 for reserved slot indices.
This is what the JSAPI expects.
This commit is contained in:
@@ -1855,7 +1855,7 @@ assert!(!obj.is_null());\
|
||||
create += """\
|
||||
assert!(!obj.is_null());
|
||||
|
||||
JS_SetReservedSlot(obj, DOM_OBJECT_SLOT as u32,
|
||||
JS_SetReservedSlot(obj, DOM_OBJECT_SLOT,
|
||||
PrivateValue(boxed::into_raw(object) as *const libc::c_void));"""
|
||||
return create
|
||||
|
||||
|
||||
Reference in New Issue
Block a user