bug 580128 - Fix wrapping of jsval parameters. r=peterv

This commit is contained in:
Andreas Gal 2010-10-10 15:39:04 -07:00
parent 33995dacf8
commit 7f9d12d8d0

View File

@ -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: