mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Use u32 for reserved slot indices.
This is what the JSAPI expects.
This commit is contained in:
parent
03408d69fb
commit
21a1143dd1
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue