Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
allow typescript to run over the built source
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed May 29, 2019
1 parent 1b99c81 commit fc64826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript/built/diff_match_patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ var diff_match_patch = /** @class */ (function () {
*/
diff_match_patch.prototype.diff_linesToChars_ = function (text1, text2) {
var lineArray = []; // e.g. lineArray[4] == 'Hello\n'
var lineHash = {}; // e.g. lineHash['Hello\n'] == 4
var lineHash = Object.create(null); // e.g. lineHash['Hello\n'] == 4
// '\x00' is a valid character, but various debuggers don't like it.
// So we'll insert a junk entry to avoid generating a null character.
lineArray[0] = '';
Expand Down

0 comments on commit fc64826

Please sign in to comment.