Changeset 31145 in webkit for trunk/JavaScriptCore/kjs/object.cpp
- Timestamp:
- Mar 18, 2008, 6:50:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.cpp
r31121 r31145 211 211 if (propertyName == exec->propertyNames().underscoreProto) { 212 212 JSObject* proto = value->getObject(); 213 214 // Setting __proto__ to a non-object, non-null value is silently ignored to match Mozilla 215 if (!proto && value != jsNull()) 216 return; 217 213 218 while (proto) { 214 if (proto == this) 219 if (proto == this) { 215 220 throwError(exec, GeneralError, "cyclic __proto__ value"); 221 return; 222 } 216 223 proto = proto->prototype() ? proto->prototype()->getObject() : 0; 217 224 }
Note:
See TracChangeset
for help on using the changeset viewer.