mirror of
https://github.com/nodejs/node.git
synced 2025-05-09 15:46:27 +00:00

PR-URL: https://github.com/nodejs/node/pull/14162 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
18 lines
591 B
JavaScript
18 lines
591 B
JavaScript
/* eslint-disable strict */
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
const zlib = require('zlib');
|
|
|
|
assert.strictEqual(zlib.constants.Z_OK, 0, 'Z_OK should be 0');
|
|
zlib.constants.Z_OK = 1;
|
|
assert.strictEqual(zlib.constants.Z_OK, 0, 'Z_OK should be 0');
|
|
|
|
assert.strictEqual(zlib.codes.Z_OK, 0, 'Z_OK should be 0');
|
|
zlib.codes.Z_OK = 1;
|
|
assert.strictEqual(zlib.codes.Z_OK, 0, 'zlib.codes.Z_OK should be 0');
|
|
zlib.codes = { Z_OK: 1 };
|
|
assert.strictEqual(zlib.codes.Z_OK, 0, 'zlib.codes.Z_OK should be 0');
|
|
|
|
assert.ok(Object.isFrozen(zlib.codes), 'zlib.codes should be frozen');
|