@@ -175,7 +175,7 @@ bool JSCallbackObject<Parent>::getOwnPropertySlot(JSObject* object, JSGlobalObje
175175 } else if (JSObjectGetPropertyCallback getProperty = jsClass->getProperty ) {
176176 if (!propertyNameRef)
177177 propertyNameRef = OpaqueJSString::tryCreate (name);
178- JSValueRef exception = 0 ;
178+ JSValueRef exception = nullptr ;
179179 JSValueRef value;
180180 {
181181 JSLock::DropAllLocks dropAllLocks (globalObject);
@@ -234,7 +234,7 @@ JSValue JSCallbackObject<Parent>::defaultValue(const JSObject* object, JSGlobalO
234234
235235 for (JSClassRef jsClass = thisObject->classRef (); jsClass; jsClass = jsClass->parentClass ) {
236236 if (JSObjectConvertToTypeCallback convertToType = jsClass->convertToType ) {
237- JSValueRef exception = 0 ;
237+ JSValueRef exception = nullptr ;
238238 JSValueRef result = convertToType (ctx, thisRef, jsHint, &exception);
239239 if (exception) {
240240 throwException (globalObject, scope, toJS (globalObject, exception));
@@ -265,7 +265,7 @@ bool JSCallbackObject<Parent>::put(JSCell* cell, JSGlobalObject* globalObject, P
265265 if (JSObjectSetPropertyCallback setProperty = jsClass->setProperty ) {
266266 if (!propertyNameRef)
267267 propertyNameRef = OpaqueJSString::tryCreate (name);
268- JSValueRef exception = 0 ;
268+ JSValueRef exception = nullptr ;
269269 bool result;
270270 {
271271 JSLock::DropAllLocks dropAllLocks (globalObject);
@@ -282,7 +282,7 @@ bool JSCallbackObject<Parent>::put(JSCell* cell, JSGlobalObject* globalObject, P
282282 if (entry->attributes & kJSPropertyAttributeReadOnly )
283283 return false ;
284284 if (JSObjectSetPropertyCallback setProperty = entry->setProperty ) {
285- JSValueRef exception = 0 ;
285+ JSValueRef exception = nullptr ;
286286 bool result;
287287 {
288288 JSLock::DropAllLocks dropAllLocks (globalObject);
@@ -329,7 +329,7 @@ bool JSCallbackObject<Parent>::putByIndex(JSCell* cell, JSGlobalObject* globalOb
329329 if (JSObjectSetPropertyCallback setProperty = jsClass->setProperty ) {
330330 if (!propertyNameRef)
331331 propertyNameRef = OpaqueJSString::tryCreate (propertyName.impl ());
332- JSValueRef exception = 0 ;
332+ JSValueRef exception = nullptr ;
333333 bool result;
334334 {
335335 JSLock::DropAllLocks dropAllLocks (globalObject);
@@ -346,7 +346,7 @@ bool JSCallbackObject<Parent>::putByIndex(JSCell* cell, JSGlobalObject* globalOb
346346 if (entry->attributes & kJSPropertyAttributeReadOnly )
347347 return false ;
348348 if (JSObjectSetPropertyCallback setProperty = entry->setProperty ) {
349- JSValueRef exception = 0 ;
349+ JSValueRef exception = nullptr ;
350350 bool result;
351351 {
352352 JSLock::DropAllLocks dropAllLocks (globalObject);
@@ -388,7 +388,7 @@ bool JSCallbackObject<Parent>::deleteProperty(JSCell* cell, JSGlobalObject* glob
388388 if (JSObjectDeletePropertyCallback deleteProperty = jsClass->deleteProperty ) {
389389 if (!propertyNameRef)
390390 propertyNameRef = OpaqueJSString::tryCreate (name);
391- JSValueRef exception = 0 ;
391+ JSValueRef exception = nullptr ;
392392 bool result;
393393 {
394394 JSLock::DropAllLocks dropAllLocks (globalObject);
@@ -461,7 +461,7 @@ EncodedJSValue JSCallbackObject<Parent>::construct(JSGlobalObject* globalObject,
461461 arguments.reserveInitialCapacity (argumentCount);
462462 for (size_t i = 0 ; i < argumentCount; ++i)
463463 arguments.uncheckedAppend (toRef (globalObject, callFrame->uncheckedArgument (i)));
464- JSValueRef exception = 0 ;
464+ JSValueRef exception = nullptr ;
465465 JSObject* result;
466466 {
467467 JSLock::DropAllLocks dropAllLocks (globalObject);
@@ -492,7 +492,7 @@ bool JSCallbackObject<Parent>::customHasInstance(JSObject* object, JSGlobalObjec
492492 for (JSClassRef jsClass = thisObject->classRef (); jsClass; jsClass = jsClass->parentClass ) {
493493 if (JSObjectHasInstanceCallback hasInstance = jsClass->hasInstance ) {
494494 JSValueRef valueRef = toRef (globalObject, value);
495- JSValueRef exception = 0 ;
495+ JSValueRef exception = nullptr ;
496496 bool result;
497497 {
498498 JSLock::DropAllLocks dropAllLocks (globalObject);
@@ -538,7 +538,7 @@ EncodedJSValue JSCallbackObject<Parent>::call(JSGlobalObject* globalObject, Call
538538 arguments.reserveInitialCapacity (argumentCount);
539539 for (size_t i = 0 ; i < argumentCount; ++i)
540540 arguments.uncheckedAppend (toRef (globalObject, callFrame->uncheckedArgument (i)));
541- JSValueRef exception = 0 ;
541+ JSValueRef exception = nullptr ;
542542 JSValue result;
543543 {
544544 JSLock::DropAllLocks dropAllLocks (globalObject);
@@ -635,7 +635,7 @@ JSValue JSCallbackObject<Parent>::getStaticValue(JSGlobalObject* globalObject, P
635635 if (OpaqueJSClassStaticValuesTable* staticValues = jsClass->staticValues (globalObject)) {
636636 if (StaticValueEntry* entry = staticValues->get (name)) {
637637 if (JSObjectGetPropertyCallback getProperty = entry->getProperty ) {
638- JSValueRef exception = 0 ;
638+ JSValueRef exception = nullptr ;
639639 JSValueRef value;
640640 {
641641 JSLock::DropAllLocks dropAllLocks (globalObject);
@@ -702,7 +702,7 @@ EncodedJSValue JSCallbackObject<Parent>::callbackGetter(JSGlobalObject* globalOb
702702 if (JSObjectGetPropertyCallback getProperty = jsClass->getProperty ) {
703703 if (!propertyNameRef)
704704 propertyNameRef = OpaqueJSString::tryCreate (name);
705- JSValueRef exception = 0 ;
705+ JSValueRef exception = nullptr ;
706706 JSValueRef value;
707707 {
708708 JSLock::DropAllLocks dropAllLocks (globalObject);
0 commit comments