| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -108,6 +108,16 @@ Object.defineProperty(Duplex.prototype, 'writableFinished', { | |||
| 108 | 108 | } | |
| 109 | 109 | }); | |
| 110 | 110 | ||
| 111 | + Object.defineProperty(Duplex.prototype, 'writableCorked', { | ||
| 112 | + // Making it explicit this property is not enumerable | ||
| 113 | + // because otherwise some prototype manipulation in | ||
| 114 | + // userland will fail | ||
| 115 | + enumerable: false, | ||
| 116 | + get() { | ||
| 117 | + return this._writableState ? this._writableState.corked : 0; | ||
| 118 | + } | ||
| 119 | + }); | ||
| 120 | + | ||
| 111 | 121 | Object.defineProperty(Duplex.prototype, 'writableEnded', { | |
| 112 | 122 | // Making it explicit this property is not enumerable | |
| 113 | 123 | // because otherwise some prototype manipulation in | |
| Back | FazBrowse Home | New Git URL |
0 commit comments