 
         co
         (doto (make-options)
-          (set-options co-opts))
+          (set-options co-opts state))
 
         co
         (if (false? (get-in state [:compiler-options :rewrite-polyfills]))


        closure-opts
        (doto (make-options)
          (set-options co-opts)
          (.resetWarningsGuard)

          (.setStrictModeInput false)


  (when (contains? opts :closure-warnings)
    (doseq [[type level] (:closure-warnings opts)]
      (let [group (get warning-types type)
            check-level (get check-levels level)]
        (if-not (and group check-level)
          (util/warn state {:type ::invalid-closure-warning :key type :level level})
          (. closure-opts (setWarningLevel group check-level))))))

  (when (contains? opts :closure-extra-annotations)
    (. closure-opts (setExtraAnnotationNames (map name (:closure-extra-annotations opts)))))
