Skip to content

Start using ES5 functionality in tsc #10125

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

Note that this issue is not about dropping support for --target es3.

This came up in a meeting today. Given that tsc.exe now uses ChakraCore to run tsc.js, it's not clear how much value users are getting in being able to run TypeScript on ES3 runtimes.

Reasons we'd do this include

  • Being able to use ES5 array methods such as map, filter, reduceLeft, some, and every.
  • Being able to create empty objects as maps with Object.create(null) to avoid hasOwnProperty calls for every lookup.
  • Using get-accessors for lazily computing position information.
  • Being able to use JSON.stringify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking ChangeWould introduce errors in existing codeCommittedThe team has roadmapped this issueSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions