From 24c6d6a13e51c4bd86c31f04fcb0a1d2e932046f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Damjan=20Ko=C5=A1ir?= Date: Thu, 23 Jul 2015 16:33:28 +1200 Subject: [PATCH] Rename the second foo into a bar --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 1aeef58..81f9714 100644 --- a/index.js +++ b/index.js @@ -39,14 +39,14 @@ var rootParent = {} * get the Object implementation, which is slower but will work correctly. */ Buffer.TYPED_ARRAY_SUPPORT = (function () { - function Foo () {} + function Bar () {} try { var buf = new ArrayBuffer(0) var arr = new Uint8Array(buf) arr.foo = function () { return 42 } - arr.constructor = Foo + arr.constructor = Bar return arr.foo() === 42 && // typed array instances can be augmented - arr.constructor === Foo && // constructor can be set + arr.constructor === Bar && // constructor can be set typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray` new Uint8Array(1).subarray(1, 1).byteLength === 0 // ie10 has broken `subarray` } catch (e) { -- 2.34.1