diff options
author | Timothy Gu <timothygu99@gmail.com> | 2017-04-03 18:15:13 -0700 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2017-04-12 10:03:26 -0700 |
commit | 2ced07ccaf7682b9ec8fb3bcc3dc8d2bb2798c61 (patch) | |
tree | 31245a1e2025264acf2216876c9e190addd44287 /test/parallel/test-zlib-not-string-or-buffer.js | |
parent | a8f460f12d81f63d95b3f1bc12a89e36cae2b271 (diff) | |
download | android-node-v8-2ced07ccaf7682b9ec8fb3bcc3dc8d2bb2798c61.tar.gz android-node-v8-2ced07ccaf7682b9ec8fb3bcc3dc8d2bb2798c61.tar.bz2 android-node-v8-2ced07ccaf7682b9ec8fb3bcc3dc8d2bb2798c61.zip |
zlib: support all ArrayBufferView types
PR-URL: https://github.com/nodejs/node/pull/12223
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/parallel/test-zlib-not-string-or-buffer.js')
-rw-r--r-- | test/parallel/test-zlib-not-string-or-buffer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-zlib-not-string-or-buffer.js b/test/parallel/test-zlib-not-string-or-buffer.js index 510e111f70..43488f0075 100644 --- a/test/parallel/test-zlib-not-string-or-buffer.js +++ b/test/parallel/test-zlib-not-string-or-buffer.js @@ -7,8 +7,8 @@ require('../common'); const assert = require('assert'); const zlib = require('zlib'); -const expected = - /^TypeError: "buffer" argument must be a string, Buffer, or Uint8Array$/; +const expected = new RegExp('^TypeError: "buffer" argument must be a string, ' + + 'Buffer, TypedArray, or DataView$'); assert.throws(() => { zlib.deflateSync(undefined); }, expected); assert.throws(() => { zlib.deflateSync(null); }, expected); |