mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
test: prevent global leak problems
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
|
||||
var env = require('./support/env');
|
||||
|
||||
// whitelist some globals to avoid warnings
|
||||
global.__eio = null;
|
||||
global.WEB_SOCKET_LOGGER = null;
|
||||
global.WEB_SOCKET_SUPPRESS_CROSS_DOMAIN_SWF_ERROR = null;
|
||||
global.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION = null;
|
||||
global.WEB_SOCKET_SWF_LOCATION = null;
|
||||
|
||||
// node only tests
|
||||
if (env.node) {
|
||||
require('./url');
|
||||
|
||||
Reference in New Issue
Block a user