Bug Description
new RegExp(/\p{P}/, 'u') in JS code crashes React Native when using Hermes, throwing SyntaxError: Invalid RegExp: Invalid escape; and it works fine with JSC. \p{P} is the Unicode character class escape for punctuation.
Hermes version: the one bundled with RN 0.71.10
React Native version (if any): 0.71.10
OS version (if any):
Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64):
Bug Description
new RegExp(/\p{P}/, 'u')in JS code crashes React Native when using Hermes, throwingSyntaxError: Invalid RegExp: Invalid escape; and it works fine with JSC.\p{P}is the Unicode character class escape for punctuation.gradle cleanand confirmed this bug does not occur with JSCHermes version: the one bundled with RN 0.71.10
React Native version (if any): 0.71.10
OS version (if any):
Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64):