Bug 221714

Summary: We should not static_assert on an ENABLE() macro.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, keith_miller, msaboff, saam, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch. ysuzuki: review+

Mark Lam
Reported 2021-02-10 13:48:36 PST
This is because the ENABLE() macro reduces to a macro expression `(defined ENABLE_##WTF_FEATURE && ENABLE_##WTF_FEATURE)` which is not a C++ expression that a static_assert can evaluate. rdar://74197896
Attachments
proposed patch. (3.59 KB, patch)
2021-02-10 13:53 PST, Mark Lam
ysuzuki: review+
Mark Lam
Comment 1 2021-02-10 13:53:29 PST
Created attachment 419897 [details] proposed patch.
Yusuke Suzuki
Comment 2 2021-02-10 13:55:58 PST
Comment on attachment 419897 [details] proposed patch. r=me
Mark Lam
Comment 3 2021-02-10 14:01:40 PST
Thanks for the review. Landed in r272685: <http://trac.webkit.org/r272685>.
Note You need to log in before you can comment on or make changes to this bug.