From 3ac4b763881e87f16fea67b98c40a3bb809fb57f Mon Sep 17 00:00:00 2001 From: Oleg Dizus Date: Tue, 27 Feb 2018 13:55:44 +0300 Subject: [PATCH] Don't override process if it defined --- TcpSocket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TcpSocket.js b/TcpSocket.js index bfc09b6..650b22f 100644 --- a/TcpSocket.js +++ b/TcpSocket.js @@ -8,7 +8,7 @@ 'use strict'; -global.process = require('process'); // needed to make stream-browserify happy +global.process = global.process || require('process'); // needed to make stream-browserify happy var Buffer = global.Buffer = global.Buffer || require('buffer').Buffer; var util = require('util');