From fb1b8d6878a155e541a26c7fb4d287ff04071253 Mon Sep 17 00:00:00 2001 From: chakrabot Date: Fri, 2 Feb 2018 17:45:58 -0800 Subject: [PATCH] meta: merge node/master into node-chakracore/master Merge 1b0d9795b6 as of 2018-01-17 This commit was automatically generated. For any problems, please contact jackhorton Reviewed-By: Jack Horton --- test/addons-napi/test_typedarray/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/addons-napi/test_typedarray/test.js b/test/addons-napi/test_typedarray/test.js index ed37f3c5d4d..41915b380be 100644 --- a/test/addons-napi/test_typedarray/test.js +++ b/test/addons-napi/test_typedarray/test.js @@ -60,7 +60,7 @@ arrayTypes.forEach((currentType) => { const template = Reflect.construct(currentType, buffer); assert.throws(() => { test_typedarray.CreateTypedArray(template, buffer, 0, 136); - }, /Invalid typed array length/); + }, RangeError); }); const nonByteArrayTypes = [ Int16Array, Uint16Array, Int32Array, Uint32Array, @@ -71,5 +71,5 @@ nonByteArrayTypes.forEach((currentType) => { test_typedarray.CreateTypedArray(template, buffer, currentType.BYTES_PER_ELEMENT + 1, 1); console.log(`start of offset ${currentType}`); - }, /start offset of/); + }, RangeError); });