fixed jsvm example
This commit is contained in:
parent
f7ed55554f
commit
01e13f5717
|
@ -94,7 +94,7 @@ type Config struct {
|
||||||
// OnInit: func(vm *goja.Runtime) {
|
// OnInit: func(vm *goja.Runtime) {
|
||||||
// // register custom bindings
|
// // register custom bindings
|
||||||
// vm.Set("myCustomVar", 123)
|
// vm.Set("myCustomVar", 123)
|
||||||
// }
|
// },
|
||||||
// })
|
// })
|
||||||
func MustRegister(app core.App, config Config) {
|
func MustRegister(app core.App, config Config) {
|
||||||
if err := Register(app, config); err != nil {
|
if err := Register(app, config); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue