Skip to content

Commit

Permalink
fix: make template object raw value non-enumerable
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 10, 2024
1 parent 69b8841 commit 9a6c805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ var __rewriteRelativeImportExtension;
};

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

0 comments on commit 9a6c805

Please sign in to comment.