From: Feross Aboukhadijeh Date: Wed, 16 Sep 2015 21:23:13 +0000 (-0700) Subject: standard X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=9930e264b05bb3e0d680fd7206d7a7b0c6634c0b;p=buffer.git standard --- diff --git a/test/methods.js b/test/methods.js index f45f72d..f4bd3f2 100644 --- a/test/methods.js +++ b/test/methods.js @@ -16,7 +16,7 @@ test('buffer.copy', function (t) { var buf1 = new B(26) var buf2 = new B(26) - for (var i = 0 ; i < 26 ; i++) { + for (var i = 0; i < 26; i++) { buf1[i] = i + 97 // 97 is ASCII a buf2[i] = 33 // ASCII ! } diff --git a/test/slice.js b/test/slice.js index d4adb39..25c111c 100644 --- a/test/slice.js +++ b/test/slice.js @@ -6,7 +6,7 @@ test('modifying buffer created by .slice() modifies original memory', function ( if (!B.TYPED_ARRAY_SUPPORT) return t.end() var buf1 = new B(26) - for (var i = 0 ; i < 26 ; i++) { + for (var i = 0; i < 26; i++) { buf1[i] = i + 97 // 97 is ASCII a } @@ -23,7 +23,7 @@ test('modifying parent buffer modifies .slice() buffer\'s memory', function (t) if (!B.TYPED_ARRAY_SUPPORT) return t.end() var buf1 = new B(26) - for (var i = 0 ; i < 26 ; i++) { + for (var i = 0; i < 26; i++) { buf1[i] = i + 97 // 97 is ASCII a }