Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] babel's "loose mode" class transform enbrittles BufferList
```js Object.defineProperty(Object.prototype, util.inspect.custom, { set(v) { throw 'this should not happen inside readable-stream'; } }); ``` With this change, I believe the output will use [[Define]] instead of [[Set]] for https://github.com/nodejs/node/blob/c101251a95cc82142bee4637f8db6cc360a06d82/lib/internal/streams/buffer_list.js#L167, and thus no longer fail when Object.prototype is modified.
- Loading branch information