Skip to content

Bug: Poor error message for invalid use of then keyword #5432

@STRd6

Description

@STRd6

Input Code

then

Expected Behavior

[stdin]:1:1: error: unexpected then
then
^^^^

Current Behavior

TypeError: Cannot read properties of undefined (reading '2')

Context

This is very minor but thought I'd point it out.

https://coffeescript.org/#try:then

  • CoffeeScript version: 2.7.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions