diff options
author | Jackson Tian <puling.tyq@alibaba-inc.com> | 2016-02-15 12:53:17 +0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-03-21 15:48:51 -0700 |
commit | d2b93e55cc941c33f06af11304eee119d56abbbe (patch) | |
tree | 0182073ae17662f6eac4dc0e7cc1705227864831 /test/parallel/test-zlib.js | |
parent | f70c71f168ecf298733617c4c7ff445740d708ee (diff) | |
download | android-node-v8-d2b93e55cc941c33f06af11304eee119d56abbbe.tar.gz android-node-v8-d2b93e55cc941c33f06af11304eee119d56abbbe.tar.bz2 android-node-v8-d2b93e55cc941c33f06af11304eee119d56abbbe.zip |
lib: reduce usage of `self = this`
Remove unnecessary `self = this`.
PR-URL: https://github.com/nodejs/node/pull/5231
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-zlib.js')
-rw-r--r-- | test/parallel/test-zlib.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/parallel/test-zlib.js b/test/parallel/test-zlib.js index 261b519a6b..f0b7e7bddc 100644 --- a/test/parallel/test-zlib.js +++ b/test/parallel/test-zlib.js @@ -125,11 +125,10 @@ SlowStream.prototype.resume = function() { SlowStream.prototype.end = function(chunk) { // walk over the chunk in blocks. - var self = this; - self.chunk = chunk; - self.length = chunk.length; - self.resume(); - return self.ended; + this.chunk = chunk; + this.length = chunk.length; + this.resume(); + return this.ended; }; |