[JSC] Fix JSC build with newer ICU
Created attachment 365580 [details] Patch
<rdar://problem/49113565>
Comment on attachment 365580 [details] Patch Would we rather be forced to to handle new cases? Maybe debug builds shouldn't have the default?
(In reply to Keith Miller from comment #3) > Comment on attachment 365580 [details] > Patch > > Would we rather be forced to to handle new cases? Maybe debug builds > shouldn't have the default? I think that "default" is OK here. This is because newly added fields are not handled in ECMAScript until it is specified in the ECMA402 spec. If we do not use "default" clause here, we will notice that a new enum field is added in ICU side. But it does not mean we should handle it at that time. When we handle it, we will see the proposal/spec and add it here anyway.
(In reply to Yusuke Suzuki from comment #4) > (In reply to Keith Miller from comment #3) > > Comment on attachment 365580 [details] > > Patch > > > > Would we rather be forced to to handle new cases? Maybe debug builds > > shouldn't have the default? > > I think that "default" is OK here. This is because newly added fields are > not handled in ECMAScript until it is specified in the ECMA402 spec. > If we do not use "default" clause here, we will notice that a new enum field > is added in ICU side. > But it does not mean we should handle it at that time. > When we handle it, we will see the proposal/spec and add it here anyway. Sounds good. r=me
Committed r243311: <https://trac.webkit.org/changeset/243311>