mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Updated to mozjs v0.7.1.
This commit is contained in:
parent
0786e34a3a
commit
d0cc9d2cd5
13 changed files with 39 additions and 30 deletions
|
@ -258,8 +258,10 @@ unsafe extern fn native_handler_callback(cx: *mut JSContext, argc: u32, vp: *mut
|
|||
|
||||
rooted!(in(cx) let v = *GetFunctionNativeReserved(args.callee(), SLOT_NATIVEHANDLER_TASK));
|
||||
match v.to_int32() {
|
||||
v if v == NativeHandlerTask::Resolve as i32 => handler.resolved_callback(cx, args.get(0)),
|
||||
v if v == NativeHandlerTask::Reject as i32 => handler.rejected_callback(cx, args.get(0)),
|
||||
v if v == NativeHandlerTask::Resolve as i32 =>
|
||||
handler.resolved_callback(cx, HandleValue::from_raw(args.get(0))),
|
||||
v if v == NativeHandlerTask::Reject as i32 =>
|
||||
handler.rejected_callback(cx, HandleValue::from_raw(args.get(0))),
|
||||
_ => panic!("unexpected native handler task value"),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue