1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Fix last prefer-const, decrease max warnings

and make prefer-const an error
This commit is contained in:
David Baker
2017-01-19 18:24:28 +00:00
parent dc74a2326f
commit 80129e7483
3 changed files with 5 additions and 5 deletions

View File

@@ -414,7 +414,7 @@ module.exports.runPolyfills = function() {
// Reference: http://es5.github.io/#x15.4.4.19
if (!Array.prototype.map) {
Array.prototype.map = function(callback, thisArg) {
let T, A, k;
let T, k;
if (this === null || this === undefined) {
throw new TypeError(' this is null or not defined');
@@ -443,7 +443,7 @@ module.exports.runPolyfills = function() {
// 6. Let A be a new array created as if by the expression new Array(len)
// where Array is the standard built-in constructor with that name and
// len is the value of len.
A = new Array(len);
const A = new Array(len);
// 7. Let k be 0
k = 0;