Changeset 5115 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp


Ignore:
Timestamp:
Oct 2, 2003, 11:19:27 AM (22 years ago)
Author:
darin
Message:

Reviewed by Dave.

  • fixed 3441656 -- constructor bad for objs created w/ function as prototype (www.moock.org/asdg/codedepot)
  • kjs/nodes.cpp: (FuncDeclNode::processFuncDecl): Set up the constructor as as specified in the JavaScript spec. We were already doing this right in the other place we make functions.
File:
1 edited

Legend:

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

    r4380 r5115  
    27992799  //  Value proto = exec->interpreter()->builtinObject().construct(exec,List::empty());
    28002800  List empty;
    2801   Value proto = exec->interpreter()->builtinObject().construct(exec,empty);
     2801  Object proto = exec->interpreter()->builtinObject().construct(exec,empty);
     2802  proto.put(exec, constructorPropertyName, func, ReadOnly|DontDelete|DontEnum);
    28022803  func.put(exec, prototypePropertyName, proto, Internal|DontDelete);
    28032804
Note: See TracChangeset for help on using the changeset viewer.