|
408 | 408 | (emits "new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, " (count items) ", [" |
409 | 409 | (comma-sep (interleave items (repeat "null"))) "], null), null)") |
410 | 410 |
|
411 | | - :else (emits "cljs.core.PersistentHashSet.createAsIfByAssoc([" (comma-sep items) "], true)")))) |
| 411 | + :else (emits "cljs.core.PersistentHashSet.createAsIfByAssoc([" (comma-sep items) "])")))) |
412 | 412 |
|
413 | 413 | (defmethod emit* :js-value |
414 | 414 | [{:keys [items js-type env]}] |
|
565 | 565 | :else line)) |
566 | 566 |
|
567 | 567 | (defn checking-types? [] |
568 | | - (#{:error :warn} |
| 568 | + (#{:error :warning} |
569 | 569 | (get-in @env/*compiler* |
570 | 570 | [:options :closure-warnings :check-types]))) |
571 | 571 |
|
|
750 | 750 | (emitln " = null;") |
751 | 751 | (emitln "if (arguments.length > " (dec (count params)) ") {") |
752 | 752 | (let [a (emit-arguments-to-array (dec (count params)))] |
753 | | - (emitln " " (last params) " = new cljs.core.IndexedSeq(" a ",0);")) |
| 753 | + (emitln " " (last params) " = new cljs.core.IndexedSeq(" a ",0,null);")) |
754 | 754 | (emitln "} ")) |
755 | 755 | (emits "return " delegate-name ".call(this,") |
756 | 756 | (doseq [param params] |
|
819 | 819 | (emitln "var " restarg " = null;") |
820 | 820 | (emitln "if (arguments.length > " max-fixed-arity ") {") |
821 | 821 | (let [a (emit-arguments-to-array max-fixed-arity)] |
822 | | - (emitln restarg " = new cljs.core.IndexedSeq(" a ",0);")) |
| 822 | + (emitln restarg " = new cljs.core.IndexedSeq(" a ",0,null);")) |
823 | 823 | (emitln "}") |
824 | 824 | (emitln "return " n ".cljs$core$IFn$_invoke$arity$variadic(" |
825 | 825 | (comma-sep (butlast maxparams)) |
|
0 commit comments