Fix wrong call to the underlying method when checking if an object is frozen

This commit is contained in:
Jérémie Astori 2015-07-18 01:40:02 +02:00
parent 9c7f6b6ac9
commit 909616e0ad

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'
);