Changeset 9390 in webkit for trunk/JavaScriptCore/kjs/function.cpp
- Timestamp:
- Jun 14, 2005, 9:36:11 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.cpp
r8904 r9390 345 345 { 346 346 if (propertyName == argumentsPropertyName) { 347 // check for locally declared arguments property 348 ValueImp *v = getDirect(propertyName); 349 if (v) 350 return Value(v); 351 352 // default: return builtin arguments array 347 353 if (!_argumentsObject) 348 createArgumentsObject(exec);354 createArgumentsObject(exec); 349 355 return Value(_argumentsObject); 350 356 } 351 357 return ObjectImp::get(exec, propertyName); 352 }353 354 void ActivationImp::put(ExecState *exec, const Identifier &propertyName, const Value &value, int attr)355 {356 if (propertyName == argumentsPropertyName) {357 // FIXME: Do we need to allow overwriting this?358 return;359 }360 ObjectImp::put(exec, propertyName, value, attr);361 358 } 362 359
Note:
See TracChangeset
for help on using the changeset viewer.