Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit fb1b8d6

Browse files
committed
meta: merge node/master into node-chakracore/master
Merge 1b0d979 as of 2018-01-17 This commit was automatically generated. For any problems, please contact jackhorton Reviewed-By: Jack Horton <jahorto@microsoft.com>
1 parent c5a23c4 commit fb1b8d6

File tree

1 file changed

+2
-2
lines changed
  • test/addons-napi/test_typedarray

1 file changed

+2
-2
lines changed

test/addons-napi/test_typedarray/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ arrayTypes.forEach((currentType) => {
6060
const template = Reflect.construct(currentType, buffer);
6161
assert.throws(() => {
6262
test_typedarray.CreateTypedArray(template, buffer, 0, 136);
63-
}, /Invalid typed array length/);
63+
}, RangeError);
6464
});
6565

6666
const nonByteArrayTypes = [ Int16Array, Uint16Array, Int32Array, Uint32Array,
@@ -71,5 +71,5 @@ nonByteArrayTypes.forEach((currentType) => {
7171
test_typedarray.CreateTypedArray(template, buffer,
7272
currentType.BYTES_PER_ELEMENT + 1, 1);
7373
console.log(`start of offset ${currentType}`);
74-
}, /start offset of/);
74+
}, RangeError);
7575
});

0 commit comments

Comments
 (0)