Ignore:
Timestamp:
Oct 15, 2007, 1:41:39 PM (18 years ago)
Author:
ggaren
Message:

Reviewed by Darin Adler.


Removed the concept of AnonymousCode. It was unused, and it doesn't
exist in the ECMA spec.


[ Patch broken off from http://bugs.webkit.org/show_bug.cgi?id=14868 ]

  • kjs/Context.cpp: (KJS::Context::Context):
  • kjs/function.h: (KJS::):
  • kjs/nodes.cpp: (ReturnNode::execute):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/Context.cpp

    r25534 r26620  
    4343   
    4444    // create and initialize activation object (ECMA 10.1.6)
    45     if (type == FunctionCode || type == AnonymousCode ) {
     45    if (type == FunctionCode) {
    4646        m_activation = new ActivationImp(func, *args);
    4747        m_variable = m_activation;
     
    6666        break;
    6767    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);
    7770        m_variable = m_activation; // TODO: DontDelete ? (ECMA 10.2.3)
    7871        m_thisVal = thisV;
    7972        break;
    8073    }
    81    
     74
    8275    m_interpreter->setContext(this);
    8376}
Note: See TracChangeset for help on using the changeset viewer.