Browse Source

Register -> Registry

Dmitry Panov 9 years ago
parent
commit
ab375fc32e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      goja/main.go

+ 1 - 1
goja/main.go

@@ -63,7 +63,7 @@ func run() error {
 	vm := goja.New()
 	vm.SetRandSource(newRandSource())
 
-	new(require.Require).Enable(vm)
+	new(require.Registry).Enable(vm)
 	console.Enable(vm)
 
 	vm.Set("load", func(call goja.FunctionCall) goja.Value {