← All docs

getcwd() — internals

Compiler internals for getcwd(): lowering path, type checks, and runtime helpers.

getcwd() — internals

Where it lives

Lowering notes

  • Lowers getcwd() through the target-aware runtime helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_getcwd
  • __rt_tmpfile

Signature summary

function getcwd(): string

What the type checker enforces

  • Arity: takes no arguments.

Eval interpreter (magician)

Cross-references