Unexpected overwrite falsey value
thzt opened this issue · 0 comments
thzt commented
lib/inject.js line 23
if (!isOverride && obj[property]) { //what about isOverride:false, obj[propery]:0
throw new Error('can\'t overwrite property ' + property);
}
obj[property] may be Falsey Value
, such as 0, '', false ...
these values will be overrided although isOverride
is false.