We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5180e7e commit 799325aCopy full SHA for 799325a
1 file changed
src/main/cljs/cljs/nodejscli.cljs
@@ -10,12 +10,13 @@
10
; job is to make sure cljs.nodejs is loaded and that the *main-cli-fn*
11
; is called with the script's command-line arguments.
12
(ns cljs.nodejscli
13
- (:require [cljs.nodejs :as nodejs]))
+ (:require [cljs.nodejs :as nodejs]
14
+ [goog.object :as gobj]))
15
16
;; need to set js/goog.global if COMPILED
17
(when ^boolean js/COMPILED
18
(set! js/goog.global js/global))
19
20
;; Call the user's main function
21
(when (fn? cljs.core/*main-cli-fn*)
- (apply cljs.core/*main-cli-fn* (drop 2 (.-argv js/process))))
22
+ (apply cljs.core/*main-cli-fn* (drop 2 (gobj/get js/process "argv"))))
0 commit comments