From 7e1e601ddc2e381724fa5ba28cd842712aa3eca4 Mon Sep 17 00:00:00 2001 From: Osman Mesut Ozcan Date: Tue, 31 Jan 2017 17:52:50 +0800 Subject: [PATCH] Update stringPrototypeBlacklist object stringPrototypeBlacklist is updated according to ES6 String.prototype.repeat() method. --- lib/extendStringPrototype.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/extendStringPrototype.js b/lib/extendStringPrototype.js index 67374a1..10c10f0 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', 'replace', 'search', 'slice', 'split', 'substring', + 'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match','repeat' , 'replace', 'search', 'slice', 'split', 'substring', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight' ]; @@ -110,4 +110,4 @@ module['exports'] = function () { } }; -}; \ No newline at end of file +};