diff --git a/js/xpconnect/src/XPCComponents.cpp b/js/xpconnect/src/XPCComponents.cpp index 7b455ff9296..0e522454377 100644 --- a/js/xpconnect/src/XPCComponents.cpp +++ b/js/xpconnect/src/XPCComponents.cpp @@ -1879,7 +1879,7 @@ struct NS_STACK_CLASS ExceptionArgParser } bool parseResult(JS::Value &v) { - return JS_ValueToECMAInt32(cx, v, (int32_t*) &eResult); + return JS_ValueToECMAUint32(cx, v, (uint32_t*) &eResult); } bool parseStack(JS::Value &v) {