We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b99c81 commit fc64826Copy full SHA for fc64826
1 file changed
typescript/built/diff_match_patch.js
@@ -387,7 +387,7 @@ var diff_match_patch = /** @class */ (function () {
387
*/
388
diff_match_patch.prototype.diff_linesToChars_ = function (text1, text2) {
389
var lineArray = []; // e.g. lineArray[4] == 'Hello\n'
390
- var lineHash = {}; // e.g. lineHash['Hello\n'] == 4
+ var lineHash = Object.create(null); // e.g. lineHash['Hello\n'] == 4
391
// '\x00' is a valid character, but various debuggers don't like it.
392
// So we'll insert a junk entry to avoid generating a null character.
393
lineArray[0] = '';
0 commit comments