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


Ignore:
Timestamp:
Feb 8, 2008, 5:06:23 PM (17 years ago)
Author:
Darin Adler
Message:

JavaScriptCore:

Reviewed by Eric.

Test: fast/js/constructor-attributes.html

  • kjs/JSGlobalObject.cpp: (KJS::JSGlobalObject::reset): Remove unwanted attributes from "constructor".
  • kjs/function_object.cpp: (KJS::FunctionObjectImp::construct): Ditto.
  • kjs/nodes.cpp: (KJS::FuncDeclNode::makeFunction): Ditto. (KJS::FuncExprNode::evaluate): Ditto.

WebCore:

Reviewed by Eric.

Test: fast/js/constructor-attributes.html

  • bindings/scripts/CodeGeneratorJS.pm: Remove unwanted attributes from "constructor".

LayoutTests:

Reviewed by Eric.

  • fast/js/constructor-attributes-expected.txt: Added.
  • fast/js/constructor-attributes.html: Added.
  • fast/js/resources/constructor-attributes.js: Added.
File:
1 edited

Legend:

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

    r30041 r30102  
    46704670
    46714671    JSObject* proto = exec->lexicalGlobalObject()->objectConstructor()->construct(exec, exec->emptyList());
    4672     proto->putDirect(exec->propertyNames().constructor, func, ReadOnly | DontDelete | DontEnum);
     4672    proto->putDirect(exec->propertyNames().constructor, func, DontEnum);
    46734673    func->putDirect(exec->propertyNames().prototype, proto, Internal | DontDelete);
    46744674    func->putDirect(exec->propertyNames().length, jsNumber(m_body->parameters().size()), ReadOnly | DontDelete | DontEnum);
     
    47074707    FunctionImp* func = new FunctionImp(exec, m_ident, m_body.get(), exec->scopeChain());
    47084708    JSObject* proto = exec->lexicalGlobalObject()->objectConstructor()->construct(exec, exec->emptyList());
    4709     proto->putDirect(exec->propertyNames().constructor, func, ReadOnly | DontDelete | DontEnum);
     4709    proto->putDirect(exec->propertyNames().constructor, func, DontEnum);
    47104710    func->putDirect(exec->propertyNames().prototype, proto, Internal | DontDelete);
    47114711
Note: See TracChangeset for help on using the changeset viewer.