Commit 744c5d2
authored
[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.1 parent 7783afa commit 744c5d2
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 16 | | |
23 | 17 | | |
0 commit comments