make class methods unenumerable - fixes #41
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
var Test = function () {
|
||||
function Test() {
|
||||
}
|
||||
Test.prototype.test = function () {
|
||||
return 5 + 5;
|
||||
};
|
||||
Object.defineProperties(Test.prototype, {
|
||||
test: {
|
||||
writeable: true,
|
||||
value: function () {
|
||||
return 5 + 5;
|
||||
}
|
||||
}
|
||||
});
|
||||
return Test;
|
||||
}();
|
||||
|
||||
Reference in New Issue
Block a user