TODO: Fix this. See https://github.com/gopherjs/gopherjs/issues/763.
(t *testing.T)
| 143 | |
| 144 | // TODO: Fix this. See https://github.com/gopherjs/gopherjs/issues/763. |
| 145 | func TestIssue22073(t *testing.T) { |
| 146 | m := ValueOf(NonExportedFirst(0)).Method(0) |
| 147 | |
| 148 | if got := m.Type().NumOut(); got != 0 { |
| 149 | t.Errorf("NumOut: got %v, want 0", got) |
| 150 | } |
| 151 | |
| 152 | // TODO: Fix this. The call below fails with: |
| 153 | // |
| 154 | // var $call = function(fn, rcvr, args) { return fn.apply(rcvr, args); }; |
| 155 | // ^ |
| 156 | // TypeError: Cannot read property 'apply' of undefined |
| 157 | |
| 158 | // Shouldn't panic. |
| 159 | // m.Call(nil) |
| 160 | } |
| 161 | |
| 162 | func TestCallReturnsEmpty(t *testing.T) { |
| 163 | t.Skip("test uses runtime.SetFinalizer, which is not supported by GopherJS") |