[Webkit-unassigned] [Bug 191439] [JSC] isStrWhiteSpace seems redundant with Lexer<UChar>::isWhiteSpace

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 8 16:48:29 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=191439

--- Comment #1 from Ross Kirsling <ross.kirsling at sony.com> ---
(In reply to Ross Kirsling from comment #0)
> Note that while Lexer<UChar>::isWhiteSpace matches the current ES spec
> (https://tc39.github.io/ecma262/#sec-white-space), isStrWhiteSpace
> additionally looks for 0x000A, 0x000D, 0x2028, and 0x2029. Not sure whether
> it's supposed to be doing so or not though.

Oops, apparently those four are covered in the very next section (https://tc39.github.io/ecma262/#sec-line-terminators).
So isStrWhiteSpace (whose name originates here: https://tc39.github.io/ecma262/#prod-StrWhiteSpace) includes line terminators and isWhiteSpace does not.

I guess we still need two functions, but we can at least have one depend on the other.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181109/779a413d/attachment-0001.html>


More information about the webkit-unassigned mailing list