mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
Rename squirrel_away_unboxed to squirrel_away_unique.(fixes #1938)
This commit is contained in:
parent
6040271db3
commit
34b73837d3
2 changed files with 5 additions and 5 deletions
|
@ -135,7 +135,7 @@ pub fn unwrap_value<T>(val: *JSVal, proto_id: PrototypeList::id::ID, proto_depth
|
|||
}
|
||||
}
|
||||
|
||||
pub unsafe fn squirrel_away_unboxed<T>(x: ~T) -> *T {
|
||||
pub unsafe fn squirrel_away_unique<T>(x: ~T) -> *T {
|
||||
cast::transmute(x)
|
||||
}
|
||||
|
||||
|
@ -409,7 +409,7 @@ pub extern fn ThrowingConstructor(_cx: *JSContext, _argc: c_uint, _vp: *mut JSVa
|
|||
pub fn initialize_global(global: *JSObject) {
|
||||
let protoArray = ~([0 as *JSObject, ..PrototypeList::id::IDCount as uint]);
|
||||
unsafe {
|
||||
let box_ = squirrel_away_unboxed(protoArray);
|
||||
let box_ = squirrel_away_unique(protoArray);
|
||||
JS_SetReservedSlot(global,
|
||||
DOM_PROTOTYPE_SLOT,
|
||||
PrivateValue(box_ as *libc::c_void));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue