Ignore:
Timestamp:
Nov 18, 2010, 8:33:17 PM (15 years ago)
Author:
[email protected]
Message:

Bug 49577 - Function.prototype should be non-configurable

Rubber stamped by Geoff Garen.

Ooops, Function.prototype should not be enumerable!

JavaScriptCore:

  • runtime/JSFunction.cpp:

(JSC::JSFunction::getOwnPropertySlot):

LayoutTests:

  • fast/js/function-prototype-descriptor-expected.txt:
  • fast/js/script-tests/function-prototype-descriptor.js:

(test):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/JSFunction.cpp

    r72063 r72362  
    209209            JSObject* prototype = new (exec) JSObject(scope().globalObject()->emptyObjectStructure());
    210210            prototype->putDirect(exec->propertyNames().constructor, this, DontEnum);
    211             putDirect(exec->propertyNames().prototype, prototype, DontDelete);
     211            putDirect(exec->propertyNames().prototype, prototype, DontDelete | DontEnum);
    212212            location = getDirectLocation(propertyName);
    213213        }
Note: See TracChangeset for help on using the changeset viewer.