Changeset 11920 in webkit for trunk/JavaScriptCore/kjs/function.cpp
- Timestamp:
- Jan 6, 2006, 3:51:00 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.cpp
r11910 r11920 182 182 ListIterator it = args.begin(); 183 183 Parameter *p = param; 184 JSValue *v = *it; 184 185 while (p) { 185 186 if (it != args.end()) { … … 188 189 printInfo(exec,"to", *it); 189 190 #endif 190 variable->put(exec, p->name, *it);191 it++;191 variable->put(exec, p->name, v); 192 v = ++it; 192 193 } else 193 194 variable->put(exec, p->name, jsUndefined()); … … 486 487 : _function(function), _arguments(true), _argumentsObject(0) 487 488 { 488 _arguments = arguments.copy();489 _arguments.copyFrom(arguments); 489 490 // FIXME: Do we need to support enumerating the arguments property? 490 491 }
Note:
See TracChangeset
for help on using the changeset viewer.