diff --git a/compiler/crates/react_utils/src/ensure_sufficient_stack.rs b/compiler/crates/react_utils/src/ensure_sufficient_stack.rs new file mode 100644 index 0000000000..9124b46c80 --- /dev/null +++ b/compiler/crates/react_utils/src/ensure_sufficient_stack.rs @@ -0,0 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +pub fn ensure_sufficient_stack(f: impl FnOnce() -> R) -> R { + f() +}