diff --git a/wasm/cmix.go b/wasm/cmix.go index 489d9f4c4f0fa6954fd716fb46d9995d27728217..e11c2c35653705054ba31cfedfb6c6ac5b23fd72 100644 --- a/wasm/cmix.go +++ b/wasm/cmix.go @@ -78,7 +78,6 @@ func NewCmix(_ js.Value, args []js.Value) interface{} { err := bindings.NewCmix( args[0].String(), args[1].String(), password, args[3].String()) - if err != nil { Throw(TypeError, err.Error()) return nil diff --git a/wasm/utils.go b/wasm/utils.go index ea4695626442060f48e0ea30f75f988c8d7bc4d1..f0ca3516bd5598921e57af387c41d621aee60b46 100644 --- a/wasm/utils.go +++ b/wasm/utils.go @@ -43,7 +43,7 @@ func JsonToJS(src []byte) js.Value { } // Throw function stub to throws Javascript exceptions. The exception must be -// one of the defined Exception below. Any other error types will result in an +// one of the defined Exception below. Any other error types will result in an // error. func Throw(exception Exception, message string)