Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Referencing lastCookies.length when length property does not exist #1712

Closed
@benmccann

Description

@benmccann

In src/ng/browser.js there's a reference to lastCookies.length:

      if (lastCookies.length > 20) {
        $log.warn("Cookie '"+ name +"' possibly not set or overflowed because too many cookies " +
          "were already set (" + lastCookies.length + " > 20 )");
      }

However, lastCookies is an Object and Objects do not have a length property, so this if statement will never be triggered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions