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 8a7097f commit 5007c88
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 5007c88

Please sign in to comment.