docs: public Scriptable newArray(Scriptable scope, Object[] elements)
      {
          if (elements.getClass().getComponentType() != ScriptRuntime.ObjectClass)
              throw new IllegalArgumentException();
          NativeArray result = new NativeArray(elements);
          ScriptRuntime.setBuiltinProtoAndParent(result, scope,
                  TopLevel.Builtins.Array);
          return result;
      }