From: Feross Aboukhadijeh Date: Mon, 9 Feb 2015 01:45:37 +0000 (-0800) Subject: eslint: ignore consistent-this rule X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=939e98fc4f08182138f64fffc2a01811bffe00db;p=buffer.git eslint: ignore consistent-this rule --- diff --git a/index.js b/index.js index d148573..ae4b521 100644 --- 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