OSDN Git Service

bring back accidently removed asserations from JavaScriptCore
authorIvailo Monev <xakepa10@laimg.moc>
Wed, 10 Aug 2016 14:56:50 +0000 (14:56 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Wed, 10 Aug 2016 14:56:50 +0000 (14:56 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/3rdparty/javascriptcore/JavaScriptCore/API/APICast.h

index d1e768d..c5918ae 100644 (file)
@@ -63,6 +63,7 @@ inline JSC::ExecState* toJS(JSGlobalContextRef c)
 inline JSC::JSValue toJS(JSC::ExecState* exec, JSValueRef v)
 {
     Q_UNUSED(exec);
+    Q_ASSERT(exec);
     Q_ASSERT(v);
 #if USE(JSVALUE32_64)
     JSC::JSCell* jsCell = reinterpret_cast<JSC::JSCell*>(const_cast<OpaqueJSValue*>(v));
@@ -79,6 +80,7 @@ inline JSC::JSValue toJS(JSC::ExecState* exec, JSValueRef v)
 inline JSC::JSValue toJSForGC(JSC::ExecState* exec, JSValueRef v)
 {
     Q_UNUSED(exec);
+    Q_ASSERT(exec);
     Q_ASSERT(v);
 #if USE(JSVALUE32_64)
     JSC::JSCell* jsCell = reinterpret_cast<JSC::JSCell*>(const_cast<OpaqueJSValue*>(v));