Merge pull request #490 from astorije/patch-2

Fix wrong call to the underlying method when checking if an object is frozen
This commit is contained in:
Keith Cirkel 2015-07-18 20:56:51 +01:00
commit 0d5e87a825

View file

@ -1720,7 +1720,7 @@ module.exports = function (chai, _) {
var obj = flag(this, 'object');
this.assert(
Object.isSealed(obj)
Object.isFrozen(obj)
, 'expected #{this} to be frozen'
, 'expected #{this} to not be frozen'
);