Uploaded image for project: 'ClojureScript'
  1. CLJS-1438

If .startsWith (or any other method) is used on a clojurescript string object when using :optimizarions :advanced code does not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Declined
    • Affects versions: 1.7.48
    • Fix versions: None
    • Labels:
    • Environment:

      MAC OS

      Description

      This is a minimal project HelloWorld (I am attaching a full project "minimal.tgz"):
      (ns minimal.core)

      (let [elem (.getElementById js/document "app")]
      (set! (.-innerHTML elem) (str "Hello World " (.. "Hello" (startsWith "H")))))

      Will run fine with no optimizarions but when using :advanced I get: Uncaught TypeError: "Hello".Lb is not a function

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alex+import import
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: