summaryrefslogtreecommitdiff
path: root/test/parallel/test-zlib-not-string-or-buffer.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-zlib-not-string-or-buffer.js')
-rw-r--r--test/parallel/test-zlib-not-string-or-buffer.js4
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);