This commit is contained in:
Tony Garnock-Jones 2023-04-28 10:23:57 +02:00
parent abaf23920b
commit 3384acbd62
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@ const boot: tslib.server.PluginModuleFactory = ({ typescript: ts }) => {
span(s: ts.TextSpan | undefined): ts.TextSpan | undefined {
if (s !== void 0 && !('__syndicate_translated__' in s)) {
const newStart = this.loc(s.start);
if (newStart === void 0) throw new Error("Source position unavailable for TextSpan " + JSON.stringify(s));
if (newStart === void 0) throw new Error(
"Source position unavailable for TextSpan " + JSON.stringify(s));
s.start = newStart;
(s as any).__syndicate_translated__ = true;
}