aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-read-type.js
diff options
context:
space:
mode:
authorSarat Addepalli <sarat.addepalli@paytm.com>2018-08-06 15:25:59 +0530
committerJames M Snell <jasnell@gmail.com>2018-08-24 11:57:56 -0700
commit4ea2c8e26ff5812579295dd0dfc191c481e42af9 (patch)
treea15f75c673efca544b7a76ec9c698bea35e986aa /test/parallel/test-fs-read-type.js
parent6bb96a1183d9492a34a745a5d1bb48552a4eef24 (diff)
downloadandroid-node-v8-4ea2c8e26ff5812579295dd0dfc191c481e42af9.tar.gz
android-node-v8-4ea2c8e26ff5812579295dd0dfc191c481e42af9.tar.bz2
android-node-v8-4ea2c8e26ff5812579295dd0dfc191c481e42af9.zip
fs: update read to work with any TypedArray/DataView
PR-URL: https://github.com/nodejs/node/pull/22150 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-fs-read-type.js')
-rw-r--r--test/parallel/test-fs-read-type.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-fs-read-type.js b/test/parallel/test-fs-read-type.js
index 2980bca7d2..d75464ce0a 100644
--- a/test/parallel/test-fs-read-type.js
+++ b/test/parallel/test-fs-read-type.js
@@ -15,8 +15,8 @@ assert.throws(
{
code: 'ERR_INVALID_ARG_TYPE',
name: 'TypeError [ERR_INVALID_ARG_TYPE]',
- message: 'The "buffer" argument must be one of type Buffer or Uint8Array.' +
- ' Received type number'
+ message: 'The "buffer" argument must be one of type Buffer, TypedArray, ' +
+ 'or DataView. Received type number'
}
);
@@ -70,8 +70,8 @@ assert.throws(
{
code: 'ERR_INVALID_ARG_TYPE',
name: 'TypeError [ERR_INVALID_ARG_TYPE]',
- message: 'The "buffer" argument must be one of type Buffer or Uint8Array.' +
- ' Received type number'
+ message: 'The "buffer" argument must be one of type Buffer, TypedArray, ' +
+ 'or DataView. Received type number'
}
);