Adds Runtime.NewNamespace to allow intentional name collisions (#604)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user