Skip to content

Commit 75910f6

Browse files
author
Alexander Pavlov
committed
Make the difflib code ES5 strict mode-compliant
1 parent 411838b commit 75910f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

difflib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF S
2828
DAMAGE.
2929
***/
3030
/* Author: Chas Emerick <[email protected]> */
31-
__whitespace = {" ":true, "\t":true, "\n":true, "\f":true, "\r":true};
31+
var __whitespace = {" ":true, "\t":true, "\n":true, "\f":true, "\r":true};
3232

33-
difflib = {
33+
var difflib = {
3434
defaultJunkFunction: function (c) {
3535
return __whitespace.hasOwnProperty(c);
3636
},

0 commit comments

Comments
 (0)