We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d6b9db commit db27423Copy full SHA for db27423
1 file changed
lib/processor/annotation/Traits.js
@@ -75,7 +75,7 @@ Traits.prototype = {
75
subjectMethod = subjectProto[methodName],
76
traitMethod = traitProto[methodName],
77
sameMethodName = (subjectMethod && traitMethod),
78
- methodsAreNotTheSame = sameMethodName && (subjectMethod !== traitMethod),
+ methodsAreNotTheSame = sameMethodName && (subjectMethod.toString() !== traitMethod.toString()),
79
traitMethodIsNotARequired = sameMethodName && (traitMethod.name !== requiredMethodName),
80
subjecMethodIsNotARequired = sameMethodName && (subjectMethod.name !== requiredMethodName);
81
0 commit comments