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

Commit

Permalink
test: fix test-buffer-fill test on node-chakracore
Browse files Browse the repository at this point in the history
  • Loading branch information
boingoing committed Nov 15, 2018
1 parent 8643ba6 commit 9e33b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-buffer-fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ common.expectsError(() => {
if (common.isChakraEngine) {
// Skip on ChakraCore due to TypedArray .length JIT bug
// (see this issue: https://github.com/Microsoft/ChakraCore/issues/2319)
const err = new RangeError('Index out of range');
err.code = 'ERR_INDEX_OUT_OF_RANGE';
const err = new RangeError('Attempt to write outside buffer bounds');
err.code = 'ERR_BUFFER_OUT_OF_BOUNDS';
throw err;
}
const buf = Buffer.from('w00t');
Expand Down

0 comments on commit 9e33b1f

Please sign in to comment.