Closed jgonggrijp closed 4 years ago
@lohriialo and other ExtendScript users: until this is merged and released, you can just use the version D that I provided in #2827. It is equivalent to Underscore 1.9.2, but with the current fix as well as the fix from #2829.
I have a feeling like some overzealous linters may complain about the "insecure" use of eval
after this change — but hey, let’s give it a try.
Thanks @jashkenas. At least the project's own linter doesn't complain.
Fixes #2827, in a way that will continue to work after the rollup conversion from #2826. As a bonus, it will also stop rollup from complaining about
this
being undefined at module scope.@lohriialo this is version D, but with a cleaner commit history.
@jashkenas it might be possible to skip the
self
andglobal
checks and just always rely onFunction('return this')()
, but I'll leave that as an optional future step.