Changeset 26620 in webkit for trunk/JavaScriptCore/kjs/Context.cpp
- Timestamp:
- Oct 15, 2007, 1:41:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/Context.cpp
r25534 r26620 43 43 44 44 // create and initialize activation object (ECMA 10.1.6) 45 if (type == FunctionCode || type == AnonymousCode) {45 if (type == FunctionCode) { 46 46 m_activation = new ActivationImp(func, *args); 47 47 m_variable = m_activation; … … 66 66 break; 67 67 case FunctionCode: 68 case AnonymousCode: 69 if (type == FunctionCode) { 70 scope = func->scope(); 71 scope.push(m_activation); 72 } else { 73 scope.clear(); 74 scope.push(glob); 75 scope.push(m_activation); 76 } 68 scope = func->scope(); 69 scope.push(m_activation); 77 70 m_variable = m_activation; // TODO: DontDelete ? (ECMA 10.2.3) 78 71 m_thisVal = thisV; 79 72 break; 80 73 } 81 74 82 75 m_interpreter->setContext(this); 83 76 }
Note:
See TracChangeset
for help on using the changeset viewer.