summaryrefslogtreecommitdiff
path: root/test/parallel/test-zlib-deflate-constructors.js
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2017-04-03 18:15:13 -0700
committerTimothy Gu <timothygu99@gmail.com>2017-04-12 10:03:26 -0700
commit2ced07ccaf7682b9ec8fb3bcc3dc8d2bb2798c61 (patch)
tree31245a1e2025264acf2216876c9e190addd44287 /test/parallel/test-zlib-deflate-constructors.js
parenta8f460f12d81f63d95b3f1bc12a89e36cae2b271 (diff)
downloadandroid-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-deflate-constructors.js')
-rw-r--r--test/parallel/test-zlib-deflate-constructors.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-zlib-deflate-constructors.js b/test/parallel/test-zlib-deflate-constructors.js
index c495d2d11d..49695fbaa5 100644
--- a/test/parallel/test-zlib-deflate-constructors.js
+++ b/test/parallel/test-zlib-deflate-constructors.js
@@ -107,5 +107,6 @@ assert.throws(
// Throws if opts.dictionary is not a Buffer
assert.throws(
() => { new zlib.Deflate({dictionary: 'not a buffer'}); },
- /^TypeError: Invalid dictionary: it should be a Buffer or an Uint8Array$/
+ new RegExp('^TypeError: Invalid dictionary: it should be a Buffer, ' +
+ 'TypedArray, or DataView$')
);