diff --git a/js/rhino/src/org/mozilla/javascript/LazilyLoadedCtor.java b/js/rhino/src/org/mozilla/javascript/LazilyLoadedCtor.java index d9c34d9bd26c..b33b7324fe23 100644 --- a/js/rhino/src/org/mozilla/javascript/LazilyLoadedCtor.java +++ b/js/rhino/src/org/mozilla/javascript/LazilyLoadedCtor.java @@ -55,7 +55,7 @@ public final class LazilyLoadedCtor { this.ctorName = ctorName; this.sealed = sealed; - if (getter == null) { + if (setter == null) { Method[] methods = FunctionObject.getMethodList(getClass()); getter = FunctionObject.findSingleMethod(methods, "getProperty"); setter = FunctionObject.findSingleMethod(methods, "setProperty");