Commit 336d4d8
Ensure Ember 3.27+ can determine global for template compilation.
Node 12+ has access to `globalThis` (including within a VM context), but
older versions do not.
Due to the detection done in https://git.io/Jtb7s, when we can't find
`globalThis` (and don't define `global` global) evaluating
`ember-template-compiler.js` throws an error "unable to locate global
object".
This ensures that either `globalThis` or `global` are defined.
(cherry picked from commit 957dbc6)1 parent 41afd22 commit 336d4d8
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
138 | 148 | | |
139 | 149 | | |
140 | 150 | | |
| |||
0 commit comments