Object.getOwnPropertyNames includes "arguments" and "caller" for bound functions
[WebKit-https.git] / Source / JavaScriptCore / runtime / JSBoundFunction.cpp
index d2a0d26..ea6e0ab 100644 (file)
@@ -225,9 +225,6 @@ void JSBoundFunction::finishCreation(VM& vm, NativeExecutable* executable, int l
     String name; // We lazily create our 'name' string property.
     Base::finishCreation(vm, executable, length, name);
     ASSERT(inherits(vm, info()));
-
-    putDirectNonIndexAccessor(vm, vm.propertyNames->arguments, globalObject()->throwTypeErrorArgumentsCalleeAndCallerGetterSetter(), PropertyAttribute::DontDelete | PropertyAttribute::DontEnum | PropertyAttribute::Accessor);
-    putDirectNonIndexAccessor(vm, vm.propertyNames->caller, globalObject()->throwTypeErrorArgumentsCalleeAndCallerGetterSetter(), PropertyAttribute::DontDelete | PropertyAttribute::DontEnum | PropertyAttribute::Accessor);
 }
 
 void JSBoundFunction::visitChildren(JSCell* cell, SlotVisitor& visitor)