Skip to content

Commit 17e08b1

Browse files
committed
Nitpick: extra $
Replaces all occurrences of the closure environment global variable from '$$~lib/__closure_env' to '$~lib/__closure_env' in the compiler source and test files. This change ensures consistency in global naming and avoids the use of double dollar signs.
1 parent 1b07be0 commit 17e08b1

File tree

5 files changed

+477
-477
lines changed

5 files changed

+477
-477
lines changed

src/compiler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@ export class Compiler extends DiagnosticEmitter {
18521852

18531853
// For closures (functions that capture from outer scope), create a local to cache
18541854
// the environment pointer. This is needed because indirect calls to other closures
1855-
// can overwrite the global $$~lib/__closure_env.
1855+
// can overwrite the global $~lib/__closure_env.
18561856
if (instance.outerFunction && !instance.closureEnvLocal) {
18571857
let closureEnvLocal = flow.addScopedLocal("$closureEnv", this.options.usizeType);
18581858
instance.closureEnvLocal = closureEnvLocal;
@@ -1898,7 +1898,7 @@ export class Compiler extends DiagnosticEmitter {
18981898

18991899
// For closures (functions that capture from outer scope), emit code to cache the
19001900
// environment pointer in a local at function entry. This is needed because indirect
1901-
// calls to other closures can overwrite the global $$~lib/__closure_env.
1901+
// calls to other closures can overwrite the global $~lib/__closure_env.
19021902
if (instance.closureEnvLocal) {
19031903
let closureEnvLocal = instance.closureEnvLocal;
19041904

@@ -6725,7 +6725,7 @@ export class Compiler extends DiagnosticEmitter {
67256725

67266726
/** Ensures the closure environment global variable exists. */
67276727
ensureClosureEnvironmentGlobal(): string {
6728-
let name = "$~lib/__closure_env";
6728+
let name = "~lib/__closure_env";
67296729
if (!this.closureEnvironmentGlobal) {
67306730
let module = this.module;
67316731
let sizeTypeRef = this.options.sizeTypeRef;

0 commit comments

Comments
 (0)