Changeset 153547 in webkit for trunk/Source/JavaScriptCore/API/JSCallbackObjectFunctions.h
- Timestamp:
- Jul 31, 2013, 4:57:23 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSCallbackObjectFunctions.h
r153532 r153547 264 264 return; 265 265 if (JSObjectSetPropertyCallback setProperty = entry->setProperty) { 266 if (!propertyNameRef)267 propertyNameRef = OpaqueJSString::create(name);268 266 JSValueRef exception = 0; 269 267 bool result; 270 268 { 271 269 APICallbackShim callbackShim(exec); 272 result = setProperty(ctx, thisRef, propertyNameRef.get(), valueRef, &exception);270 result = setProperty(ctx, thisRef, entry->propertyNameRef.get(), valueRef, &exception); 273 271 } 274 272 if (exception) … … 325 323 return; 326 324 if (JSObjectSetPropertyCallback setProperty = entry->setProperty) { 327 if (!propertyNameRef)328 propertyNameRef = OpaqueJSString::create(propertyName.impl());329 325 JSValueRef exception = 0; 330 326 bool result; 331 327 { 332 328 APICallbackShim callbackShim(exec); 333 result = setProperty(ctx, thisRef, propertyNameRef.get(), valueRef, &exception);329 result = setProperty(ctx, thisRef, entry->propertyNameRef.get(), valueRef, &exception); 334 330 } 335 331 if (exception) … … 581 577 { 582 578 JSObjectRef thisRef = toRef(this); 583 RefPtr<OpaqueJSString> propertyNameRef;584 579 585 580 if (StringImpl* name = propertyName.publicName()) { … … 588 583 if (StaticValueEntry* entry = staticValues->get(name)) { 589 584 if (JSObjectGetPropertyCallback getProperty = entry->getProperty) { 590 if (!propertyNameRef)591 propertyNameRef = OpaqueJSString::create(name);592 585 JSValueRef exception = 0; 593 586 JSValueRef value; 594 587 { 595 588 APICallbackShim callbackShim(exec); 596 value = getProperty(toRef(exec), thisRef, propertyNameRef.get(), &exception);589 value = getProperty(toRef(exec), thisRef, entry->propertyNameRef.get(), &exception); 597 590 } 598 591 if (exception) {
Note:
See TracChangeset
for help on using the changeset viewer.