mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-05-04 10:33:48 +01:00
fix flush block in deflate_slow & enable windowBits test
This commit is contained in:
parent
5ef6eee173
commit
2434495874
2 changed files with 2 additions and 5 deletions
|
@ -743,11 +743,8 @@ function deflate_slow(s, flush) {
|
||||||
bflush = trees._tr_tally(s, 0, s.window[s.strstart-1]);
|
bflush = trees._tr_tally(s, 0, s.window[s.strstart-1]);
|
||||||
|
|
||||||
if (bflush) {
|
if (bflush) {
|
||||||
/*** FLUSH_BLOCK(s, 0); ***/
|
/*** FLUSH_BLOCK_ONLY(s, 0) ***/
|
||||||
flush_block_only(s, false);
|
flush_block_only(s, false);
|
||||||
if (s.strm.avail_out === 0) {
|
|
||||||
return BS_NEED_MORE;
|
|
||||||
}
|
|
||||||
/***/
|
/***/
|
||||||
}
|
}
|
||||||
s.strstart++;
|
s.strstart++;
|
||||||
|
|
|
@ -72,7 +72,7 @@ describe('Deflate levels', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
describe.skip('Deflate windowBits', function () {
|
describe('Deflate windowBits', function () {
|
||||||
|
|
||||||
it('windowBits 15', function(done) {
|
it('windowBits 15', function(done) {
|
||||||
testDeflate(zlib.createDeflate, pako.deflate, samples, { windowBits: 15 }, done);
|
testDeflate(zlib.createDeflate, pako.deflate, samples, { windowBits: 15 }, done);
|
||||||
|
|
Loading…
Add table
Reference in a new issue