- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for badMethod (0.1 sec)
-
src/syscall/js/js_test.go
t.Errorf("got %#v, want %#v", got, 42) } expectPanic(t, func() { dummys.Call("zero") }) expectValueError(t, func() { dummys.Get("zero").Call("badMethod") }) } func TestInvoke(t *testing.T) { var i int64 = 40 if got := dummys.Get("add").Invoke(i, 2).Int(); got != 42 { t.Errorf("got %#v, want %#v", got, 42) } expectValueError(t, func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 17.7K bytes - Viewed (0)