Changeset 154459 in webkit for trunk/Source/JavaScriptCore/API/JSObjectRef.cpp
- Timestamp:
- Aug 22, 2013, 1:35:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSObjectRef.cpp
r154038 r154459 328 328 JSValue jsValue = toJS(exec, value); 329 329 330 if (attributes && !jsObject->hasProperty(exec, name)) 331 jsObject->methodTable()->putDirectVirtual(jsObject, exec, name, jsValue, attributes); 332 else { 330 if (attributes && !jsObject->hasProperty(exec, name)) { 331 PropertyDescriptor desc(jsValue, attributes); 332 jsObject->methodTable()->defineOwnProperty(jsObject, exec, name, desc, false); 333 } else { 333 334 PutPropertySlot slot; 334 335 jsObject->methodTable()->put(jsObject, exec, name, jsValue, slot);
Note:
See TracChangeset
for help on using the changeset viewer.