Changeset 29818 in webkit for trunk/JavaScriptCore/kjs/object.cpp
- Timestamp:
- Jan 27, 2008, 1:38:01 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.cpp
r29067 r29818 209 209 ASSERT(value); 210 210 211 // non-standard netscape extension212 211 if (propertyName == exec->propertyNames().underscoreProto) { 213 212 JSObject* proto = value->getObject(); … … 222 221 } 223 222 224 /* TODO: check for write permissions directly w/o this call */ 225 /* Doesn't look very easy with the PropertyMap API - David */ 226 // putValue() is used for JS assignemnts. It passes no attribute. 227 // Assume that a C++ implementation knows what it is doing 228 // and let it override the canPut() check. 229 bool checkReadOnly = !(attr & (ReadOnly | DontEnum | Internal | Function | GetterSetter)); 223 // The put calls from JavaScript execution either have no attributes set, or in some cases 224 // have DontDelete set. For those calls, respect the ReadOnly flag. 225 bool checkReadOnly = !(attr & ~DontDelete); 226 230 227 // Check if there are any setters or getters in the prototype chain 231 228 JSObject *obj = this;
Note:
See TracChangeset
for help on using the changeset viewer.