Skip to content

Commit

Permalink
Merge pull request #2831 from jgonggrijp/es3-this-fix-final
Browse files Browse the repository at this point in the history
Take this from an isolated script context
  • Loading branch information
jashkenas committed Mar 28, 2020
2 parents ca7d3f5 + 200f887 commit 7a3797a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// instead of `window` for `WebWorker` support.
var root = typeof self == 'object' && self.self === self && self ||
typeof global == 'object' && global.global === global && global ||
this ||
Function('return this')() ||
{};

// Save the previous value of the `_` variable.
Expand Down

0 comments on commit 7a3797a

Please sign in to comment.