- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestValueOf (0.14 sec)
-
src/syscall/js/js_test.go
} if got, want := js.Global().Get("Array").Type(), js.TypeFunction; got != want { t.Errorf("got %s, want %s", got, want) } } type object = map[string]any type array = []any func TestValueOf(t *testing.T) { a := js.ValueOf(array{0, array{0, 42, 0}, 0}) if got := a.Index(1).Index(1).Int(); got != 42 { t.Errorf("got %v, want %v", got, 42) } o := js.ValueOf(object{"x": object{"y": 42}})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 17.7K bytes - Viewed (0)