Changeset 21332 in webkit for trunk/JavaScriptCore/kjs/object.cpp
- Timestamp:
- May 9, 2007, 3:36:25 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.cpp
r20310 r21332 5 5 * Copyright (C) 2001 Peter Kelly ([email protected]) 6 6 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. 7 * Copyright (C) 2007 Eric Seidel ([email protected]) 7 8 * 8 9 * This library is free software; you can redistribute it and/or … … 212 213 // non-standard netscape extension 213 214 if (propertyName == exec->propertyNames().underscoreProto) { 215 JSObject* proto = value->getObject(); 216 while (proto) { 217 if (proto == this) 218 throwError(exec, GeneralError, "cyclic __proto__ value"); 219 proto = proto->prototype() ? proto->prototype()->getObject() : 0; 220 } 221 214 222 setPrototype(value); 215 223 return;
Note:
See TracChangeset
for help on using the changeset viewer.