Closed hueniverse closed 5 years ago
Hmm, I'm not sure. Anyway, it doesn't seem to effect the usages in the hapi modules.
Hoek.contain()
always sets the prototype
option in its deepEqual()
invocation.code
it is always called with option and a value for prototype
.joi
it is always called without options.Note, there is still a case where the option is unset, where you might expect it to be the default value:
Hoek.deepEqual(Object.create(null), {}, { prototype: undefined });
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
This is clearly a bug in the way default options are set, but it does create a breaking change.
Not sure if I should revert it or not.