Skip to content

Commit 28d7c0a

Browse files
committed
Don't construct the thing that throws
Instead, we pass the prototype as the "this". It's new every time anyway.
1 parent c5c2493 commit 28d7c0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/ReactComponentStackFrame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export function describeNativeComponentFrame(
118118
} catch (x) {
119119
control = x;
120120
}
121-
fn.call(new Fake());
121+
fn.call(Fake.prototype);
122122
}
123123
} else {
124124
try {

0 commit comments

Comments
 (0)