Changeset 29818 in webkit for trunk/JavaScriptCore/kjs/function.cpp
- Timestamp:
- Jan 27, 2008, 1:38:01 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.cpp
r29810 r29818 420 420 void ActivationImp::put(ExecState*, const Identifier& propertyName, JSValue* value, int attr) 421 421 { 422 if (symbolTablePut(propertyName, value, attr)) 422 // If any bits other than DontDelete are set, then we bypass the read-only check. 423 bool checkReadOnly = !(attr & ~DontDelete); 424 if (symbolTablePut(propertyName, value, checkReadOnly)) 423 425 return; 424 426 … … 427 429 // expose in the activation object. 428 430 ASSERT(!_prop.hasGetterSetterProperties()); 429 _prop.put(propertyName, value, attr, (attr == None || attr == DontDelete));431 _prop.put(propertyName, value, attr, checkReadOnly); 430 432 } 431 433
Note:
See TracChangeset
for help on using the changeset viewer.