docs: public static Object getObjectElem(Object obj, Object elem, Context cx, Scriptable scope)
      {
          Scriptable sobj = toObjectOrNull(cx, obj, scope);
          if (sobj == null) {
              throw undefReadError(obj, elem);
          }
          return getObjectElem(sobj, elem, cx);
      }