Skip to content

Commit cbada71

Browse files
committed
Remove special handling of function.length in RecyclableObjectWalker
1 parent 673a44b commit cbada71

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/Runtime/Debug/DiagObjectModel.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,6 @@ namespace Js
25472547
// We need to special-case RegExp constructor here because it has some special properties (above) and some
25482548
// special enumerable properties which should all show up in the debugger.
25492549
JavascriptRegExpConstructor* regExp = scriptContext->GetLibrary()->GetRegExpConstructor();
2550-
Js::JavascriptFunction* jsFunction = Js::JavascriptFunction::FromVar(object);
25512550

25522551
if (regExp == object)
25532552
{
@@ -2563,11 +2562,6 @@ namespace Js
25632562
InsertItem(originalObject, object, propertyId, isConst, isUnscoped, &pMethodsGroupWalker);
25642563
}
25652564
}
2566-
else if ((jsFunction->IsScriptFunction() && !jsFunction->GetFunctionProxy()->IsJsBuiltInCode()) || jsFunction->IsBoundFunction())
2567-
{
2568-
// Adding special property length for the ScriptFunction, like it is done in JavascriptFunction::GetSpecialNonEnumerablePropertyName
2569-
InsertItem(originalObject, object, PropertyIds::length, true/*not editable*/, false /*isUnscoped*/, &pMethodsGroupWalker);
2570-
}
25712565
}
25722566
}
25732567

@@ -4216,4 +4210,4 @@ namespace Js
42164210
}
42174211
#endif
42184212
}
4219-
#endif
4213+
#endif

0 commit comments

Comments
 (0)