From 511aa7f822012914e6e1e146b09a708bd30f23f6 Mon Sep 17 00:00:00 2001 From: Osman Mesut OZCAN Date: Tue, 31 Jan 2017 18:17:11 +0800 Subject: [PATCH] Update stringPrototypeBlacklist object stringPrototypeBlacklist is updated according to ES6 String.prototype.repeat() method --- lib/extendStringPrototype.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extendStringPrototype.js b/lib/extendStringPrototype.js index 10c10f0..d6a3f63 100644 --- a/lib/extendStringPrototype.js +++ b/lib/extendStringPrototype.js @@ -67,7 +67,7 @@ module['exports'] = function () { var stringPrototypeBlacklist = [ '__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'charAt', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', 'charCodeAt', - 'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match','repeat' , 'replace', 'search', 'slice', 'split', 'substring', + 'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match', 'repeat', 'replace', 'search', 'slice', 'split', 'substring', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight' ];