-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Won't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix itThe severity and priority of this issue do not warrant the time or complexity needed to fix it
Description
It would be an issue if there is a method exported from the current module named hasOwnProperty:
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}Personally I would write it as:
function __export(m) {
var hasOwnProperty = Object.prototype.hasOwnProperty;
for (var p in m) if (!hasOwnProperty.call(exports, p)) exports[p] = m[p];
}Metadata
Metadata
Assignees
Labels
Won't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix itThe severity and priority of this issue do not warrant the time or complexity needed to fix it