java.lang.UnsupportedOperationException: EMPTY is not a string node

GitHub | supersteves | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Invalid var args jsdoc crashes the pretty printer

    GitHub | 6 months ago | supersteves
    java.lang.UnsupportedOperationException: EMPTY is not a string node

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      EMPTY is not a string node

      at com.google.javascript.rhino.Node.getString()
    2. Closure Compiler
      CodeGenerator.add
      1. com.google.javascript.rhino.Node.getString(Node.java:1095)
      2. com.google.javascript.jscomp.JSDocInfoPrinter.appendTypeNode(JSDocInfoPrinter.java:296)
      3. com.google.javascript.jscomp.JSDocInfoPrinter.appendTypeNode(JSDocInfoPrinter.java:250)
      4. com.google.javascript.jscomp.JSDocInfoPrinter.typeNode(JSDocInfoPrinter.java:228)
      5. com.google.javascript.jscomp.JSDocInfoPrinter.buildParamType(JSDocInfoPrinter.java:220)
      6. com.google.javascript.jscomp.JSDocInfoPrinter.print(JSDocInfoPrinter.java:128)
      7. com.google.javascript.jscomp.CodeGenerator.add(CodeGenerator.java:114)
      7 frames