Revert "JavaScriptCore: ConvertPtr should allow JavaScript null to be a valid value."

This reverts commit 05ed0325dc.
This commit is contained in:
Oliver Buchtala 2014-05-19 11:46:29 +02:00
commit d9bb3a8415

View file

@ -129,13 +129,6 @@ SWIGRUNTIME int SWIG_JSC_ConvertInstancePtr(JSContextRef context, JSObjectRef ob
SWIGRUNTIME int SWIG_JSC_ConvertPtr(JSContextRef context, JSValueRef valRef, void** ptr, swig_type_info *info, int flags) {
JSObjectRef objRef;
/* special case: JavaScript null => C NULL pointer */
if(JSValueIsNull(context, valRef)) {
*ptr=0;
return SWIG_OK;
}
if(!JSValueIsObject(context, valRef)) {
return SWIG_TypeError;
}