Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upOptimize isInstanceOf on Scala object for interfaces #3815
Labels
Comments
gzm0
added a commit
to gzm0/scala-js
that referenced
this issue
Jul 17, 2020
It needlessly wraps a ComputedName around a tree and the type system fools us into believing we need to handle js.Ident (which we don't). This leaves one remaining usage of `propertyName` in the ancestors of the type data. Removing that usage is contingent on scala-js#3815.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a follow-up of #2066 that improved instance checking for classes by using JavaScript's
instanceof
where possible. For interfaces, improvements in the style of master...SebsLittleHelpers:isInstanceOf can still be applied.