src/jdk/nashorn/internal/runtime/ScriptObject.java

Print this page

        

@@ -467,11 +467,11 @@
             ! newDesc.has(CONFIGURABLE) && ! newDesc.has(ENUMERABLE)) {
             // every descriptor field is absent
             return true;
         }
 
-        if (currentDesc.equals(newDesc)) {
+        if (newDesc.hasAndEquals(currentDesc)) {
             // every descriptor field of the new is same as the current
             return true;
         }
 
         if (! currentDesc.isConfigurable()) {