hermes-windows/lib/Regex
Neil Dhar e9c8ab30c3 Enforce error handling in Regex Executor
Summary:
Mark functions that push onto the backtrack stack as NODISCARD to
enforce that we actually check the result.

Convert `backtrack` and `matchWidth1Loop` to return `OptValue`
because they are already using their return value for something else.

Add an assert to catch uncaught errors on the next iteration of the
loop.

Reviewed By: avp

Differential Revision: D26379686

fbshipit-source-id: 5b834ce70b3c46c8d680aadc9c4c3ffa3c791392
2021-02-11 17:19:15 -08:00
..
CMakeLists.txt Use internal fork of LLVM 2020-02-06 00:34:00 -08:00
Executor.cpp Enforce error handling in Regex Executor 2021-02-11 17:19:15 -08:00
RegexParser.cpp Only allow Quantifiers for lookaheads 2021-02-10 19:45:08 -08:00