Skip to content

Update diagnostic messages to ES2015 instead of ES6 #8996

Description

Also the messages for generator and async have slightly different wording:

1220: Generators are only available when targeting ECMAScript 6 or higher.
1311: Async functions are only available when targeting ECMAScript 6 and higher.

I only noticed trying to search the phrase EcmaScript 6 or higher.

Activity

  1. mhegazy commented on Jun 6, 2016

    @mhegazy
    Contributor

    sigh... ES6 is much easier to read than ES 2015.

    PRs are welcomed. changes should be mainly in https://github.com/Microsoft/TypeScript/blob/master/src/compiler/diagnosticMessages.json and places in the code the report the errors.

  2. added this to the milestone on Jun 6, 2016
  3. texastoland commented on Jun 6, 2016

    @texastoland
    ContributorAuthor

    sigh... ES6 is much easier to read than ES 2015.

    I agree but I noticed the configs were updated already. I'll PR momentarily.

  4. added 2 commits that reference this issue on Jun 14, 2016
    f235bf7
    171ab06
  5. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions