From 672e19bdefaec8aabf0e9a890fbf2d04e0d19d83 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Fri, 10 Apr 2020 18:52:41 -0700 Subject: [PATCH] Don't construct the thing that throws Instead, we pass the prototype as the "this". It's new every time anyway. --- packages/shared/ReactComponentStackFrame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/ReactComponentStackFrame.js b/packages/shared/ReactComponentStackFrame.js index faf06b6d8a9c6..bc8a76fba236c 100644 --- a/packages/shared/ReactComponentStackFrame.js +++ b/packages/shared/ReactComponentStackFrame.js @@ -118,7 +118,7 @@ export function describeNativeComponentFrame( } catch (x) { control = x; } - fn.call(new Fake()); + fn.call(Fake.prototype); } } else { try {