Ignore:
Timestamp:
Nov 26, 2007, 3:48:14 PM (18 years ago)
Author:
[email protected]
Message:

Reviewed by Kevin McCullough.


Fixed <rdar://problem/5597937> REGRESSION (r27126): Drosera does not
show variables (can't enumerate ActivationImp properties)


Implemented a custome ActivationImp::getPropertyNames, since
ActivationImp now uses a custom property storage mechanism for local
variables.

  • kjs/function.cpp: (KJS::ActivationImp::getPropertyNames):
  • kjs/function.h:
File:
1 edited

Legend:

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

    r27842 r28053  
    2828
    2929#include "ExecState.h"
     30#include "JSGlobalObject.h"
     31#include "PropertyNameArray.h"
    3032#include "debugger.h"
    3133#include "dtoa.h"
    3234#include "function_object.h"
    3335#include "internal.h"
    34 #include "JSGlobalObject.h"
    3536#include "lexer.h"
    3637#include "nodes.h"
     
    454455
    455456    return JSObject::deleteProperty(exec, propertyName);
     457}
     458
     459void ActivationImp::getPropertyNames(ExecState* exec, PropertyNameArray& propertyNames)
     460{
     461    SymbolTable::const_iterator::Keys end = m_symbolTable->end().keys();
     462    for (SymbolTable::const_iterator::Keys it = m_symbolTable->begin().keys(); it != end; ++it)
     463        propertyNames.add(Identifier(*it));
     464
     465    JSObject::getPropertyNames(exec, propertyNames);
    456466}
    457467
Note: See TracChangeset for help on using the changeset viewer.