File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 47
47
:closure-defines option." }
48
48
*target* " default" )
49
49
50
+ (goog-define
51
+ ^{:dynamic true
52
+ :doc " Manually set the JavaScript global context. Only \" window\" , \" self\"
53
+ , and \" global\" supported. " }
54
+ *global* " default" )
55
+
50
56
(def
51
57
^{:dynamic true
52
58
:doc " Var bound to the current namespace. Only used for bootstrapping."
@@ -11739,4 +11745,8 @@ reduces them without incurring seq initialization"
11739
11745
11740
11746
(when ^boolean js/COMPILED
11741
11747
(when (identical? " nodejs" *target*)
11742
- (set! goog/global js/global)))
11748
+ (set! goog/global js/global))
11749
+ (cond
11750
+ (identical? " window" *global*) (set! goog/global js/window)
11751
+ (identical? " self" *global*) (set! goog/global js/self)
11752
+ (identical? " global" *global*) (set! goog/global js/global)))
You can’t perform that action at this time.
0 commit comments