From: Feross Aboukhadijeh Date: Tue, 10 Mar 2015 19:35:35 +0000 (-0700) Subject: enable accidentally disabled tests X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=fdc36cf893c54e4503e3476630e46284300aad32;p=buffer.git enable accidentally disabled tests --- diff --git a/test/slice.js b/test/slice.js index a9511cb..ba256ca 100644 --- a/test/slice.js +++ b/test/slice.js @@ -3,7 +3,7 @@ var test = require('tape') if (process.env.OBJECT_IMPL) B.TYPED_ARRAY_SUPPORT = false test('modifying buffer created by .slice() modifies original memory', function (t) { - if (!B._useTypedArrays) return t.end() + if (!B.TYPED_ARRAY_SUPPORT) return t.end() var buf1 = new B(26) for (var i = 0 ; i < 26 ; i++) { @@ -20,7 +20,7 @@ test('modifying buffer created by .slice() modifies original memory', function ( }) test('modifying parent buffer modifies .slice() buffer\'s memory', function (t) { - if (!B._useTypedArrays) return t.end() + if (!B.TYPED_ARRAY_SUPPORT) return t.end() var buf1 = new B(26) for (var i = 0 ; i < 26 ; i++) {