]> zoso.dev Git - buffer.git/commit
test: set TYPED_ARRAY_SUPPORT via global
authorFeross Aboukhadijeh <feross@feross.org>
Wed, 16 Sep 2015 05:21:05 +0000 (22:21 -0700)
committerFeross Aboukhadijeh <feross@feross.org>
Wed, 16 Sep 2015 05:21:05 +0000 (22:21 -0700)
commitda664f7c6c714015530220e0ee1fddaaa7ca402e
tree501a5e40909379e9afb3d0c800bbc4ab32612de0
parente0ca79ce4d5b10fd2e05d8dbc24d85c17a1cc314
test: set TYPED_ARRAY_SUPPORT via global

This change is to prepare for proper `instanceof Buffer` support.

When testing the Object implementation, we’ll want to exclude the code
that changes the Buffer’s __proto__ values and it won’t be enough to
just set `Buffer.TYPED_ARRAY_SUPPORT = false` like we were doing before.
21 files changed:
bin/download-node-tests.js
index.js
test/base64.js
test/basic.js
test/compare.js
test/constructor.js
test/deprecated.js
test/from-string.js
test/methods.js
test/node-es6/test-buffer-arraybuffer.js
test/node-es6/test-buffer-iterator.js
test/node/test-buffer-ascii.js
test/node/test-buffer-bytelength.js
test/node/test-buffer-concat.js
test/node/test-buffer-indexof.js
test/node/test-buffer-inspect.js
test/node/test-buffer.js
test/slice.js
test/static.js
test/to-string.js
test/write.js