diff --git a/javascript/diff_match_patch_uncompressed.js b/javascript/diff_match_patch_uncompressed.js index 88a702c..2d0f848 100644 --- a/javascript/diff_match_patch_uncompressed.js +++ b/javascript/diff_match_patch_uncompressed.js @@ -495,7 +495,7 @@ diff_match_patch.prototype.diff_linesToChars_ = function(text1, text2) { } var line = text.substring(lineStart, lineEnd + 1); - if (lineHash.hasOwnProperty ? lineHash.hasOwnProperty(line) : + if (lineHash.hasOwnProperty ? Object.prototype.hasOwnProperty.call(lineHash, line) : (lineHash[line] !== undefined)) { chars += String.fromCharCode(lineHash[line]); } else {