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

Commit

Permalink
test, lib: fix rest syntax unsupported in node-chakracore
Browse files Browse the repository at this point in the history
  • Loading branch information
boingoing committed Nov 15, 2018
1 parent b624e59 commit 2169ac4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/internal/streams/buffer_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,13 @@ module.exports = class BufferList {

// Make sure the linked list only shows the minimal necessary information.
[inspect.custom](_, options) {
return inspect(this, {
...options,
const _localOptions = {
// Only inspect one level.
depth: 0,
// It should not recurse.
customInspect: false
});
};
const result = Object.assign({}, options, _localOptions);
return inspect(this, result);
}
};

0 comments on commit 2169ac4

Please sign in to comment.