src/jdk/nashorn/internal/runtime/arrays/SealedArrayFilter.java

Print this page

        

*** 23,35 **** * questions. */ package jdk.nashorn.internal.runtime.arrays; import static jdk.nashorn.internal.runtime.ECMAErrors.typeError; - import jdk.nashorn.internal.runtime.GlobalObject; import jdk.nashorn.internal.runtime.PropertyDescriptor; /** * ArrayData after the array has been sealed by Object.seal call. */ --- 23,35 ---- * questions. */ package jdk.nashorn.internal.runtime.arrays; + import jdk.nashorn.internal.objects.Global; import static jdk.nashorn.internal.runtime.ECMAErrors.typeError; import jdk.nashorn.internal.runtime.PropertyDescriptor; /** * ArrayData after the array has been sealed by Object.seal call. */
*** 60,68 **** public boolean canDelete(final long fromIndex, final long toIndex, final boolean strict) { return canDelete((int) fromIndex, strict); } @Override ! public PropertyDescriptor getDescriptor(final GlobalObject global, final int index) { return global.newDataDescriptor(getObject(index), false, true, true); } } --- 60,68 ---- public boolean canDelete(final long fromIndex, final long toIndex, final boolean strict) { return canDelete((int) fromIndex, strict); } @Override ! public PropertyDescriptor getDescriptor(final Global global, final int index) { return global.newDataDescriptor(getObject(index), false, true, true); } }