Summary: | Please disable the webkitFirstVersionWithInitConstructorSupport check on Apple TV | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Geoffrey Garen <ggaren> | ||||
Component: | New Bugs | Assignee: | Geoffrey Garen <ggaren> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | benjamin, cmarcelo, commit-queue | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Geoffrey Garen
2014-12-10 11:59:29 PST
Created attachment 243059 [details]
Patch
Committed r177091: <http://trac.webkit.org/changeset/177091> Comment on attachment 243059 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=243059&action=review > Source/JavaScriptCore/API/JSWrapperMap.mm:664 > +#if PLATFORM(APPLETV) > + // There are no old clients on Apple TV, so there's no need for backwards compatibility. > + return true; > +#endif > + > static int32_t versionOfLinkTimeLibrary = 0; > if (!versionOfLinkTimeLibrary) > versionOfLinkTimeLibrary = NSVersionOfLinkTimeLibrary("JavaScriptCore"); I imagine that if we enabled unreachable code warnings it might complain about the unreachable code after the #if. Perhaps an #if/#else/#endif might be better. |