wip rename

This commit is contained in:
2026-01-28 14:22:35 -05:00
parent 604178341d
commit a613283539
11 changed files with 112 additions and 158 deletions

View File

@@ -8,7 +8,7 @@ import (
"github.com/evanw/esbuild/pkg/api"
"modernc.org/quickjs"
"reichard.io/poiesis/internal/builtin"
"reichard.io/poiesis/internal/functions"
)
type Runtime struct {
@@ -59,7 +59,7 @@ func (r *Runtime) populateGlobals() error {
}
// Register Custom Functions
for name, builtin := range builtin.GetBuiltins() {
for name, builtin := range functions.GetRegisteredFunctions() {
// Register Main Function
if err := r.vm.RegisterFunc(name, builtin.WrapFn(r.ctx), false); err != nil {
return err