@fairfox/polly 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1421,8 +1421,9 @@ var init_tla = __esm(() => {
1421
1421
  emitPostconditions(postconditions) {
1422
1422
  for (const postcondition of postconditions) {
1423
1423
  const tlaExpr = this.tsExpressionToTLA(postcondition.expression, true);
1424
- const comment = postcondition.message ? ` \\* ${postcondition.message}` : "";
1425
- this.line(`/\\ ${tlaExpr}${comment}`);
1424
+ const message = postcondition.message ?? "ensures failed";
1425
+ const escapedMessage = message.replace(/"/g, "\\\"");
1426
+ this.line(`/\\ Assert(${tlaExpr}, "${escapedMessage}")`);
1426
1427
  }
1427
1428
  }
1428
1429
  processAssignments(assignments, state) {
@@ -7659,4 +7660,4 @@ main().catch((error) => {
7659
7660
  process.exit(1);
7660
7661
  });
7661
7662
 
7662
- //# debugId=2D8DDA7C0A85F5E664756E2164756E21
7663
+ //# debugId=5561EDE053F2874C64756E2164756E21