Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Support for environment with `global` and `window`

Michal Charemzaff6a182904bf
diff --git a/support/tail.js b/support/tail.js
index 018add8d..84be1435 100644
--- a/support/tail.js
+++ b/support/tail.js
@@ -1,5 +1,5 @@
// The global object is "self" in Web Workers.
-global = (function() { return this; })();
+var global = (function() { return this; })();
/**
* Save timer references to avoid Sinon interfering (see GH-237).