Skip to content

Commit

Permalink
fix: freeze readonly UNKNOWN_LOCATION result
Browse files Browse the repository at this point in the history
  • Loading branch information
idoros committed Mar 5, 2024
1 parent 109eab3 commit f45f065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/features/st-var.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ export function get(meta: StylableMeta, name: string): VarSymbol | undefined {

// Stylable StVar Public APIs

const UNKNOWN_LOCATION = {
const UNKNOWN_LOCATION = Object.freeze({
offset: -1,
line: -1,
column: -1,
} as const;
} as const);
export class StylablePublicApi {
constructor(private stylable: Stylable) {}

Expand Down

0 comments on commit f45f065

Please sign in to comment.