Revert "[api fix] Make properties non-enumerable"

This reverts commit adf06f0988ad72d437275c192a7503421cd853ba.
This commit is contained in:
Marak Squires 2013-01-05 12:13:41 +05:30
parent 67ab1a7232
commit 52d4f71696

View File

@ -48,9 +48,7 @@ var addProperty = function (color, func) {
exports[color] = function (str) {
return func.apply(str);
};
Object.defineProperty(String.prototype, color, {
get: func
});
String.prototype.__defineGetter__(color, func);
};