Microsoft/TypeScript

Make private field name parsing ecma 262 compliant

開放

#50,883 建立於 2022年9月21日

 (1 則留言) (1 個反應) (1 位負責人)TypeScript (13,395 個分叉)batch import
BugDomain: ParserEffort: ModerateHelp WantedRescheduled

倉庫指標

星標
 (108,860 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

This file has parse errors, but probably shouldn't.

Considerations:

  • https://github.com/microsoft/TypeScript/pull/50856 added support for starting with a unicode escape
  • The names #ZW__NJ and #ZW__J contain \u200c and \u200d, respectively (not here, but in the file)
  • Support for extended unicode escapes (i.e. \u{6F}, rather than \u006F) depends on ES2015, but we appear to parse the file as ES5.
  • Converting the extended unicode escapes to regular unicode escapes does not seem to eliminate the errors

Discovered as part of https://github.com/microsoft/TypeScript/issues/50835

貢獻者指南