Commit b79fb98
Robert Jackson
Do not assume global variables are assigned to
`requirejs` is a global variable (provided by [loader.js
here](https://github.com/ember-cli/loader.js/blob/v4.7.0/lib/loader/loader.js#L1)).
The prior code made the assumption that all global variables are
assigned to `self`/`window`, but this is _only_ true in some
circumstances. For example, when the entire bundle is evaluated within
an IIFE `self.requirejs` is undefined.self.1 parent 6563435 commit b79fb98
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 | | |
2 | 8 | | |
3 | 9 | | |
| |||
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
42 | | - | |
| 48 | + | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
| |||
0 commit comments