diff --git a/harness/regExpUtils.js b/harness/regExpUtils.js index e57e196a05..9b4c58ae1d 100644 --- a/harness/regExpUtils.js +++ b/harness/regExpUtils.js @@ -51,7 +51,7 @@ function printStringCodePoints(string) { function testPropertyEscapes(regExp, string, expression) { if (!regExp.test(string)) { for (const symbol of string) { - printCodePoint(symbol.codePointAt(0)); + const hex = printCodePoint(symbol.codePointAt(0)); assert( regExp.test(symbol), `\`${ expression }\` should match U+${ hex } (\`${ symbol }\`)`