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/function_object.cpp

    r30040 r30102  
    225225    JSObject* objCons = exec->lexicalGlobalObject()->objectConstructor();
    226226    JSObject* prototype = objCons->construct(exec, exec->emptyList());
    227     prototype->putDirect(exec->propertyNames().constructor, fimp, DontEnum | DontDelete | ReadOnly);
     227    prototype->putDirect(exec->propertyNames().constructor, fimp, DontEnum);
    228228    fimp->putDirect(exec->propertyNames().prototype, prototype, Internal | DontDelete);
    229229    return fimp;
Note: See TracChangeset for help on using the changeset viewer.