Changeset 26621 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp
- Timestamp:
- Oct 15, 2007, 1:44:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r26620 r26621 2487 2487 // ECMA 10.2.2 2488 2488 context->variableObject()->put(exec, ident, func, Internal | (context->codeType() == EvalCode ? 0 : DontDelete)); 2489 2490 if (body) {2491 // hack the scope so that the function gets put as a property of func, and it's scope2492 // contains the func as well as our current scope2493 JSObject *oldVar = context->variableObject();2494 context->setVariableObject(func);2495 context->pushScope(func);2496 body->processFuncDecl(exec);2497 context->popScope();2498 context->setVariableObject(oldVar);2499 }2500 2489 } 2501 2490
Note:
See TracChangeset
for help on using the changeset viewer.