src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeRegExpExecResult.java

Print this page

        

*** 86,94 **** * @param length property value */ @Setter(attributes = Attribute.NOT_ENUMERABLE | Attribute.NOT_CONFIGURABLE) public static void length(final Object self, final Object length) { if (self instanceof ScriptObject) { ! ((ScriptObject)self).setLength(NativeArray.validLength(length, true)); } } } --- 86,94 ---- * @param length property value */ @Setter(attributes = Attribute.NOT_ENUMERABLE | Attribute.NOT_CONFIGURABLE) public static void length(final Object self, final Object length) { if (self instanceof ScriptObject) { ! ((ScriptObject)self).setLength(NativeArray.validLength(length)); } } }