Skip to content

Commit

Permalink
Fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Jun 24, 2019
1 parent 0de985c commit 7debfad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Tokenizer.js
Expand Up @@ -558,7 +558,7 @@ Tokenizer.prototype._parseNamedEntityStrict = function() {
),
map = this._xmlMode ? xmlMap : entityMap;

if (map.hasOwnProperty(entity)) {
if (Object.prototype.hasOwnProperty.call(map, entity)) {
this._emitPartial(map[entity]);
this._sectionStart = this._index + 1;
}
Expand All @@ -576,7 +576,7 @@ Tokenizer.prototype._parseLegacyEntity = function() {
//the min length of legacy entities is 2
var entity = this._buffer.substr(start, limit);

if (legacyMap.hasOwnProperty(entity)) {
if (Object.prototype.hasOwnProperty.call(legacyMap, entity)) {
this._emitPartial(legacyMap[entity]);
this._sectionStart += limit + 1;
return;
Expand Down

0 comments on commit 7debfad

Please sign in to comment.