]> zoso.dev Git - buffer.git/commitdiff
eslint: ignore consistent-this rule
authorFeross Aboukhadijeh <feross@feross.org>
Mon, 9 Feb 2015 01:45:37 +0000 (17:45 -0800)
committerFeross Aboukhadijeh <feross@feross.org>
Mon, 9 Feb 2015 01:45:37 +0000 (17:45 -0800)
index.js

index d1485737d97d24717792093a33764264a631070c..ae4b52144a521efeffd1ee1b5240681a76c1b4be 100644 (file)
--- a/index.js
+++ b/index.js
@@ -91,7 +91,9 @@ function Buffer (subject, encoding, noZero) {
   var self = this
   if (Buffer.TYPED_ARRAY_SUPPORT) {
     // Preferred: Return an augmented `Uint8Array` instance for best performance
+    /*eslint-disable consistent-this */
     self = Buffer._augment(new Uint8Array(length))
+    /*eslint-enable consistent-this */
   } else {
     // Fallback: Return THIS instance of Buffer (created by `new`)
     self.length = length