Skip to content

Node now supports Regexp hasIndices -- typescript does not.Β #44227

@BobFrankston

Description

@BobFrankston

Bug Report

πŸ”Ž hasIndices

Node 16 supports indices, TypeScript does not.

πŸ•— Version & Regression Information

When I discovered the feature in Node 16

⏯ Playground Link

 /(a)/d.exec('a').indices

πŸ™ Actual behavior

In Node it works

WIth Typescript, it is flagged as an error

πŸ™‚ Expected behavior

New features. await support in ESNext.

Metadata

Metadata

Assignees

Labels

Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptES NextNew featurers for ECMAScript (a.k.a. ESNext)Fix AvailableA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestoneSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions