- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 1,056 for mypanic (0.14 sec)
-
src/encoding/gob/error.go
func error_(err error) { panic(gobError{err}) } // catchError is meant to be used as a deferred function to turn a panic(gobError) into a // plain error. It overwrites the error return of the function that deferred its call. func catchError(err *error) { if e := recover(); e != nil { ge, ok := e.(gobError) if !ok { panic(e) } *err = ge.err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 23:03:07 UTC 2022 - 1.3K bytes - Viewed (0) -
test/closure2.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 06 18:34:24 UTC 2023 - 1.9K bytes - Viewed (0) -
test/fixedbugs/issue8047b.go
// license that can be found in the LICENSE file. // Issue 8047. Defer setup during panic shouldn't crash for nil defer. package main func main() { defer func() { // This recover recovers the panic caused by the nil defer func // g(). The original panic(1) was already aborted/replaced by this // new panic, so when this recover is done, the program completes // normally. recover() }() f() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 04 16:32:38 UTC 2019 - 575 bytes - Viewed (0) -
src/runtime/internal/wasitest/testdata/nonblock.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 26 17:59:52 UTC 2023 - 1K bytes - Viewed (0) -
src/crypto/cipher/cbc.go
if len(iv) != b.BlockSize() { panic("cipher.NewCBCEncrypter: IV length must equal block size") } return (*cbcEncrypter)(newCBC(b, iv)) } func (x *cbcEncrypter) BlockSize() int { return x.blockSize } func (x *cbcEncrypter) CryptBlocks(dst, src []byte) { if len(src)%x.blockSize != 0 { panic("crypto/cipher: input not full blocks") } if len(dst) < len(src) { panic("crypto/cipher: output smaller than input") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 03:55:33 UTC 2022 - 5.4K bytes - Viewed (0) -
test/fixedbugs/issue46938.go
package main import ( "strings" "unsafe" ) func main() { defer func() { err := recover() if err == nil { panic("expected panic") } if got := err.(error).Error(); !strings.Contains(got, "slice bounds out of range") { panic("expected panic slice out of bound, got " + got) } }() s := make([]int64, 100) p := unsafe.Pointer(&s[0]) n := 1000 _ = (*[10]int64)(p)[:n:n]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 25 01:57:42 UTC 2021 - 584 bytes - Viewed (0) -
test/fixedbugs/bug466.dir/b.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 499 bytes - Viewed (0) -
test/fixedbugs/issue48898.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 29 23:15:00 UTC 2021 - 666 bytes - Viewed (0) -
test/fixedbugs/issue9604.go
// This is a problem for arm where there is no 16-bit comparison op. if ^x != 0 { panic("^uint16(0xffff) != 0") } if ^y != 1 { panic("^uint16(0xfffe) != 1") } if -x != 1 { panic("-uint16(0xffff) != 1") } if a+b != 0 { panic("0x7000+0x9000 != 0") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 15 23:50:01 UTC 2015 - 631 bytes - Viewed (0) -
test/fixedbugs/issue29190.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 08 16:58:57 UTC 2022 - 707 bytes - Viewed (0)