Commit 341d0a23 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Enhance builtin types list.

parent 82190145
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ module JsDuck
    def initialize(relations={})
      @relations = relations
      @builtins = {
        # JavaScript builtins
        "Object" => true,
        "String" => true,
        "Number" => true,
@@ -32,9 +33,18 @@ module JsDuck
        "RegExp" => true,
        "Function" => true,
        "Array" => true,
        "Arguments" => true,
        "Date" => true,
        "Error" => true,
        "undefined" => true,
        "Mixed" => true,
        # DOM
        "HTMLElement" => true,
        "XMLElement" => true,
        "NodeList" => true,
        "TextNode" => true,
        "CSSStyleSheet" => true,
        "CSSStyleRule" => true,
        "Event" => true,
      }
    end