Adds Runtime.NewNamespace to allow intentional name collisions (#604)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2022-06-01 10:03:19 +08:00
committed by GitHub
parent e0e9e27326
commit adc7e5b170
57 changed files with 1466 additions and 733 deletions

View File

@@ -32,7 +32,7 @@ func main() {
// log to the console.
_, err := r.NewModuleBuilder("env").
ExportFunction("log", logString).
Instantiate(ctx)
Instantiate(ctx, r)
if err != nil {
log.Panicln(err)
}