-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File-grained NotSupported error #126
Conversation
Now parsing logic of metadata of test262 test can also handle features separated just with comma.
They were not supported but included in supported-features.json.
@@ -6,4 +6,25 @@ case class NotSupported(reasonPath: NotSupported.ReasonPath) | |||
object NotSupported: | |||
type Reason = String | |||
type ReasonPath = List[Reason] | |||
def apply(reason: Reason): NotSupported = NotSupported(List(reason)) | |||
def unapply(ns: NotSupported): Option[ReasonPath] = Some(ns.reasonPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is unnecessary because already NotSupported
is defined as a case class
.
def unapply(ns: NotSupported): Option[ReasonPath] = Some(ns.reasonPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah it was left as this because it was once a normal class while refactoring. Thanks for great catch.
Delte unnecessary unapply resolvse this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
With 1d467c1, error type for not supported cases are subdivided and thrown accordingly.
Additionally, there are some changes to json files used for manual filtering config.
filtered.json
-->categorized.json
yet-categorized.json
)supported-features.json
\