xref: /third_party/node/test/parallel/test-zlib-no-stream.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/parallel/
11cb0ef41Sopenharmony_ci/* eslint-disable node-core/required-modules */
21cb0ef41Sopenharmony_ci/* eslint-disable node-core/require-common-first */
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ci'use strict';
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ci// We are not loading common because it will load the stream module,
71cb0ef41Sopenharmony_ci// defeating the purpose of this test.
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ciconst { gzipSync } = require('zlib');
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ci// Avoid regressions such as https://github.com/nodejs/node/issues/36615
121cb0ef41Sopenharmony_ci
131cb0ef41Sopenharmony_ci// This must not throw
141cb0ef41Sopenharmony_cigzipSync('fooobar');
15

Indexes created Thu Nov 07 10:32:03 CST 2024