Skip to content

undefined position #6

@Prinzhorn

Description

@Prinzhorn

This is a theoretical issue, as I didn't encounter it. But under some circumstances you pass undefined instead of an actual position.

When setTimeout calls stopTrying, you pass lastCheckedPosition to foundPosition, but lastCheckedPosition is undefined if watchPosition didn't deliver any positions. In an earlier version of this script you were instead correctly returning a TIMEOUT error.

Edit: oh, I don't think this was in a earlier version, but only in my local modified version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions