Skip to content
  • Jeffery To's avatar
    javascript.lang (and family): Highlight constructor in class bodies only · af64a997
    Jeffery To authored
    Previously, "constructor" would be highlighted as a built-in method in
    all places where a property name is expected, e.g. in object literals
    and object destructuring.
    
    This change causes "constructor" to be highlighted inside class bodies
    only.
    
    Also do not highlight "constructor" if it is combined with other method
    keywords (get, set, async, etc.).
    af64a997