Changeset 95666 in webkit for trunk/Source/JavaScriptCore/runtime/JSObject.cpp
- Timestamp:
- Sep 21, 2011, 12:59:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r95503 r95666 129 129 prototype = obj->prototype(); 130 130 if (prototype.isNull()) { 131 if (!putDirectInternal(globalData, propertyName, value, 0, true, slot, getJSFunction( globalData,value)) && slot.isStrictMode())131 if (!putDirectInternal(globalData, propertyName, value, 0, true, slot, getJSFunction(value)) && slot.isStrictMode()) 132 132 throwTypeError(exec, StrictModeReadonlyPropertyWriteError); 133 133 return; … … 172 172 } 173 173 174 if (!putDirectInternal(globalData, propertyName, value, 0, true, slot, getJSFunction( globalData,value)) && slot.isStrictMode())174 if (!putDirectInternal(globalData, propertyName, value, 0, true, slot, getJSFunction(value)) && slot.isStrictMode()) 175 175 throwTypeError(exec, StrictModeReadonlyPropertyWriteError); 176 176 return; … … 185 185 void JSObject::putWithAttributes(JSGlobalData* globalData, const Identifier& propertyName, JSValue value, unsigned attributes, bool checkReadOnly, PutPropertySlot& slot) 186 186 { 187 putDirectInternal(*globalData, propertyName, value, attributes, checkReadOnly, slot, getJSFunction( *globalData,value));187 putDirectInternal(*globalData, propertyName, value, attributes, checkReadOnly, slot, getJSFunction(value)); 188 188 } 189 189 … … 191 191 { 192 192 PutPropertySlot slot; 193 putDirectInternal(*globalData, propertyName, value, attributes, true, slot, getJSFunction( *globalData,value));193 putDirectInternal(*globalData, propertyName, value, attributes, true, slot, getJSFunction(value)); 194 194 } 195 195 … … 202 202 { 203 203 JSGlobalData& globalData = exec->globalData(); 204 putDirectInternal(globalData, propertyName, value, attributes, checkReadOnly, slot, getJSFunction( globalData,value));204 putDirectInternal(globalData, propertyName, value, attributes, checkReadOnly, slot, getJSFunction(value)); 205 205 } 206 206 … … 209 209 PutPropertySlot slot; 210 210 JSGlobalData& globalData = exec->globalData(); 211 putDirectInternal(globalData, propertyName, value, attributes, true, slot, getJSFunction( globalData,value));211 putDirectInternal(globalData, propertyName, value, attributes, true, slot, getJSFunction(value)); 212 212 } 213 213
Note:
See TracChangeset
for help on using the changeset viewer.