Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8074031

Canonicalize "is a JS string" tests

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b54
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Nashorn has almost 3 dozen "obj instanceof String || obj instanceof ConsString" checks. It'd make sense standardizing this into a JSType.isString(obj) method.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  attila Attila Szegedi
                  Reporter:
                  attila Attila Szegedi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: