TypeScript/tests/baselines/reference/importAssertion5.js
Nathan Shively-Sanders 6a75689a25
Import assertion: do no parse } if { is not present (#46388)
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
2021-10-15 13:26:46 -07:00

8 lines
141 B
TypeScript

//// [importAssertion5.ts]
import * as f from "./first" assert {
//// [importAssertion5.js]
"use strict";
exports.__esModule = true;