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 76adbd7 commit fa7e69fCopy full SHA for fa7e69f
src/org/mozilla/javascript/ScriptableObject.java
@@ -1298,7 +1298,7 @@ static <T extends Scriptable> BaseFunction buildClassCtor(
1298
Object existing = getProperty(getTopLevelScope(scope), className);
1299
if (existing instanceof BaseFunction) {
1300
Object existingProto = ((BaseFunction)existing).getPrototypeProperty();
1301
- if (clazz.isInstance(existingProto)) {
+ if (clazz.equals(existingProto.getClass())) {
1302
return (BaseFunction)existing;
1303
}
1304
0 commit comments