wip rename
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user