Skip to content

Commit

Permalink
fix: apply freezing to template object
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 9, 2024
1 parent d72d6f7 commit 69b8841
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ var __rewriteRelativeImportExtension;

__makeTemplateObject = function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
if (Object.freeze) { Object.freeze(cooked); Object.freeze(raw) }
return cooked;
};

Expand Down

0 comments on commit 69b8841

Please sign in to comment.