Skip to content

Commit

Permalink
Fix typo in Object.getOwnPropertyDescriptor call
Browse files Browse the repository at this point in the history
  • Loading branch information
KarimP committed Jul 19, 2023
1 parent 9cc71f5 commit bafd70f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/shared/ReactComponentStackFrame.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,11 @@ export function describeNativeComponentFrame(

// Before ES6, the `name` property was not configurable.
if (
// $FlowFixMe[method-unbinding]
Object.getOwnPropertyDescriptor(this.DetermineComponentFrameRoot)
?.configurable
Object.getOwnPropertyDescriptor(
// $FlowFixMe[method-unbinding]
this.DetermineComponentFrameRoot,
'name',
)?.configurable
) {
// Configurable properties can be updated even if its writable
// descriptor is set to `false`. V8 utilizes a function's `name`
Expand Down

0 comments on commit bafd70f

Please sign in to comment.