Previously, import assertion parsing would try to parse both { and }, even if both were missing. If both were missing, the error for } could occur past the end of the file, causing an assertion. Fixes #46364
5 lines
157 B
Plaintext
5 lines
157 B
Plaintext
=== tests/cases/conformance/importAssertion/importAssertion4.ts ===
|
|
import * as f from "./first" assert
|
|
>f : Symbol(f, Decl(importAssertion4.ts, 0, 6))
|
|
|