| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f4bc12d commit f0eee61
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,5 @@ var zlib = require('zlib'); | |||
| 6 | 6 | zlib.gzip('hello', common.mustCall(function(err, out) { | |
| 7 | 7 | var unzip = zlib.createGunzip(); | |
| 8 | 8 | unzip.close(common.mustCall(function() {})); | |
| 9 | - assert.throws(function() { | ||
| 10 | - unzip.write(out); | ||
| 11 | - }); | ||
| 9 | + assert.throws(() => unzip.write(out), /^Error: zlib binding closed$/); | ||
| 12 | 10 | })); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments