code: public Scriptable newArray(Scriptable scope, int length)
      {
          NativeArray result = new NativeArray(length);
          ScriptRuntime.setBuiltinProtoAndParent(result, scope,
                  TopLevel.Builtins.Array);
          return result;
      }
docs: Create an array with a specified initial length.
  <p>
  @param scope the scope to create the object in
  @param length the initial length (JavaScript arrays may have
  additional properties added dynamically).
  @return the new array object