-
Notifications
You must be signed in to change notification settings - Fork 17
V8 implementation: does unicode property escapes behavior in character classes range differ from other classes intentionally? #29
Comments
Good catch. On first glance, it seems like this should throw — so this would be a bug. |
Probably a bug in the regexp parser. Will take a look soon. |
This V8 bug is now fixed: https://chromium.googlesource.com/v8/v8.git/+/7924985f9fce4ca6ff8b132f55131bd3e28ed849%5E%21 |
Thank you! |
The spec already handles this case in step 1 of the
However, it seems like this doesn’t cover property escapes that expand to only a single character (although I don’t think those exist). Should the proposal explicitly throw for those too? |
I think the behavior should not differ depending on what exactly a property class contains. |
EDIT: Sorry, I was misreading. I think it's important that whether a Unicode property escape contains multiple code points or not should not affect the grammar, as this may change over versions. |
With tc39/ecma262#984 merged, this is now fixed upstream. |
V8 5.8 — 6.1
Is this by design or should it be posted as a bug?
The text was updated successfully, but these errors were encountered: