loading icon indicating copy to clipboard operation
loading copied to clipboard

Unexpected overwrite falsey value

Open thzt opened this issue 9 years ago • 0 comments

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.

thzt avatar Feb 20 '17 08:02 thzt