Changeset 224416 in webkit for trunk/Source/JavaScriptCore/runtime/Lookup.h
- Timestamp:
- Nov 3, 2017, 12:57:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Lookup.h
r222473 r224416 290 290 bool isAccessor = entry->attributes() & PropertyAttribute::CustomAccessor; 291 291 JSValue updateThisValue = entry->attributes() & PropertyAttribute::CustomAccessor ? slot.thisValue() : JSValue(base); 292 bool result = callCustomSetter(exec, entry->propertyPutter(), isAccessor, updateThisValue, value); 293 RETURN_IF_EXCEPTION(scope, false); 292 // We need to make sure that we decide to cache this property before we potentially execute aribitrary JS. 294 293 if (isAccessor) 295 294 slot.setCustomAccessor(base, entry->propertyPutter()); 296 295 else 297 296 slot.setCustomValue(base, entry->propertyPutter()); 297 298 bool result = callCustomSetter(exec, entry->propertyPutter(), isAccessor, updateThisValue, value); 299 RETURN_IF_EXCEPTION(scope, false); 298 300 return result; 299 301 }
Note:
See TracChangeset
for help on using the changeset viewer.