Changeset 60390 in webkit for trunk/JavaScriptCore/runtime/JSObject.cpp
- Timestamp:
- May 28, 2010, 11:16:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSObject.cpp
r59811 r60390 105 105 if (!value.isObject() && !value.isNull()) 106 106 return; 107 108 JSValue nextPrototypeValue = value; 109 while (nextPrototypeValue && nextPrototypeValue.isObject()) { 110 JSObject* nextPrototype = asObject(nextPrototypeValue)->unwrappedObject(); 111 if (nextPrototype == this) { 112 throwError(exec, GeneralError, "cyclic __proto__ value"); 113 return; 114 } 115 nextPrototypeValue = nextPrototype->prototype(); 116 } 117 118 setPrototype(value); 107 if (!setPrototypeWithCycleCheck(value)) 108 throwError(exec, GeneralError, "cyclic __proto__ value"); 119 109 return; 120 110 }
Note:
See TracChangeset
for help on using the changeset viewer.