Skip to content

Commit

Permalink
Don't construct the thing that throws
Browse files Browse the repository at this point in the history
Instead, we pass the prototype as the "this". It's new every time anyway.
  • Loading branch information
sebmarkbage committed Apr 11, 2020
1 parent b8df429 commit 672e19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/ReactComponentStackFrame.js
Expand Up @@ -118,7 +118,7 @@ export function describeNativeComponentFrame(
} catch (x) {
control = x;
}
fn.call(new Fake());
fn.call(Fake.prototype);
}
} else {
try {
Expand Down

0 comments on commit 672e19b

Please sign in to comment.