mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
bug 580128 - Fix wrapping of jsval parameters. r=peterv
This commit is contained in:
parent
33995dacf8
commit
7f9d12d8d0
@ -291,6 +291,8 @@ XPCConvert::NativeData2JS(XPCLazyCallContext& lccx, jsval* d, const void* s,
|
||||
case nsXPTType::T_JSVAL :
|
||||
JS_STATIC_ASSERT(sizeof(jsval) <= sizeof(uint64));
|
||||
*d = **((jsval**)s);
|
||||
if (!JS_WrapValue(cx, d))
|
||||
return JS_FALSE;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user