You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/* eslint-disable strict */
|
|
|
|
require('../common');
|
|
|
|
var assert = require('assert');
|
|
|
|
|
|
|
|
var zlib = require('zlib');
|
|
|
|
|
|
|
|
assert.equal(zlib.constants.Z_OK, 0, 'Z_OK should be 0');
|
|
|
|
zlib.constants.Z_OK = 1;
|
|
|
|
assert.equal(zlib.constants.Z_OK, 0, 'Z_OK should be 0');
|
|
|
|
|
|
|
|
assert.equal(zlib.codes.Z_OK, 0, 'Z_OK should be 0');
|
|
|
|
zlib.codes.Z_OK = 1;
|
|
|
|
assert.equal(zlib.codes.Z_OK, 0, 'zlib.codes.Z_OK should be 0');
|
|
|
|
zlib.codes = {Z_OK: 1};
|
|
|
|
assert.equal(zlib.codes.Z_OK, 0, 'zlib.codes.Z_OK should be 0');
|
|
|
|
|
|
|
|
assert.ok(Object.isFrozen(zlib.codes), 'zlib.codes should be frozen');
|