UNPKG

deep-freeze-strict

Version:

recursively Object.freeze() objects and functions, works in strict mode

9 lines (6 loc) 177 B
var deepFreeze = require('../'); deepFreeze(Buffer); Buffer.x = 5; console.log(Buffer.x === undefined); Buffer.prototype.z = 3; console.log(Buffer.prototype.z === undefined);