Skip to content

src: perform minor cleanups on zlib code

Rodrigo Muino Tomonari requested to merge github/fork/addaleax/zlib-cleanup into master
  • Use final to indicate the classes that we actually instantiate
  • Properly use const (and the necessary associated const_cast for zlib because we don’t define ZLIB_CONST and allow shared builds)
  • Store the JS callback in an internal field rather than a Global (which improves memory leak debugging capabilities, removes a potential future memory leak footgun, and aligns the code with the rest of the codebase more closely)
  • Other minor C++ cleanup

Merge request reports

Loading