Skip to content

time: playground doesn't crash on Reset of zero time.TImer #8721

@bradfitz

Description

@bradfitz
This program crashes at Go 1.3 and Go tip (to be 1.4), but doesn't crash on the Go 1.3
playground:

https://play.golang.org/p/earSjQISp8

Instead, it ends successfully.

That led a reporter on golang-dev to conclude that it should work outside of the
playground.

Perhaps Reset, etc should panic if the Timer's runtimeTimer is zero.

Or it should work outside of the playground.

Or be documented as-is.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions