Skip to content

Commit

Permalink
feat(engine-core): add basic implementation of freeze render API
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-rk9 committed Feb 28, 2025
1 parent c665ac0 commit c6721f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/@lwc/engine-core/src/framework/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,11 @@ function shc(content: unknown): SanitizedHtmlContent {
return createSanitizedHtmlContent(sanitizedString);
}

// [fr]ee[z]e
function frz(obj: object) {
return ObjectFreeze(obj);
}

const ncls = normalizeClass;

const api = ObjectFreeze({
Expand All @@ -740,6 +745,7 @@ const api = ObjectFreeze({
ddc,
sp,
ncls,
frz,
});

export default api;
Expand Down

0 comments on commit c6721f9

Please sign in to comment.