src/jdk/nashorn/internal/objects/NativeArray.java

Print this page

        

*** 37,46 **** --- 37,47 ---- import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.List; + import jdk.nashorn.api.scripting.ScriptObjectMirror; import jdk.nashorn.internal.objects.annotations.Attribute; import jdk.nashorn.internal.objects.annotations.Constructor; import jdk.nashorn.internal.objects.annotations.Function; import jdk.nashorn.internal.objects.annotations.Getter; import jdk.nashorn.internal.objects.annotations.ScriptClass;
*** 289,299 **** * @return true if argument is an array */ @Function(attributes = Attribute.NOT_ENUMERABLE, where = Where.CONSTRUCTOR) public static Object isArray(final Object self, final Object arg) { return isArray(arg) || (arg == Global.instance().getArrayPrototype()) ! || (arg instanceof NativeRegExpExecResult); } /** * Length getter * @param self self reference --- 290,301 ---- * @return true if argument is an array */ @Function(attributes = Attribute.NOT_ENUMERABLE, where = Where.CONSTRUCTOR) public static Object isArray(final Object self, final Object arg) { return isArray(arg) || (arg == Global.instance().getArrayPrototype()) ! || (arg instanceof NativeRegExpExecResult) ! || (arg instanceof ScriptObjectMirror && ((ScriptObjectMirror)arg).isArray()); } /** * Length getter * @param self self reference