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

Print this page

        

@@ -49,10 +49,11 @@
     @Property
     public Object input;
 
     NativeRegExpExecResult(final RegExpResult result) {
         setProto(Global.instance().getArrayPrototype());
+        setIsArray();
         this.setArray(ArrayData.allocate(result.getGroups().clone()));
         this.index = result.getIndex();
         this.input = result.getInput();
     }