15:37
<Jack Works>

Is this correct? For RegExp: /[\p{Hex}]/u:

https://tc39.es/ecma262/#sec-compiletocharset

For production UnicodePropertyValueExpression :: LoneUnicodePropertyNameOrValue, s is Hex, in step 2 it calls UnicodeMatchPropertyValue(General_Category, s)

UnicodeMatchPropertyValue (https://tc39.es/ecma262/#sec-runtime-semantics-unicodematchpropertyvalue-p-v) 2. Assert: v (in this case, Hex) is a property value or property value alias for the Unicode property p (in this case, General_Category) listed in PropertyValueAliases.txt.

https://unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt

And in https://unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt , there is no entry starts with gc ; Hex so this assert should fail.

Did I miss something? Thanks!

16:06
<bakkot>
yeah that looks like a bug
16:06
<bakkot>
you should open an issue and cc @mathiasbynens
16:28
<Jack Works>
https://github.com/tc39/ecma262/issues/3586
16:59
<jmdyck>
Doesn't that fail the early error?
17:00
<jmdyck>
(The one that says it's a Syntax Error if that Assert would fail.)
17:01
<jmdyck>
Or am I missing the crux of the example?
17:04
<bakkot>
/[\p{Hex}]/u is intended to be legal, I am pretty sure
17:04
<bakkot>
certainly it is treated as such in actual implementations
17:06
<jmdyck>
oh, actually, that early error rule passes, because "Hex" appears in Table 70.
17:45
<Richard Gibson>
PR to fix: https://github.com/tc39/ecma262/pull/3587